This API focuses on ``threads'', which are a locus of control.B.1Each such thread has an identifier of type thread_id_t, and no two threads running at a given time will have the same identifier. Threads share everything except for per-thread local state,B.2which includes program counter and stack.
The thread API is shown in
Figure , and members are described in the
following sections.