B.2 Thread Creation, Destruction, and Control

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.

Figure: Thread API
\begin{figure*}{ \scriptsize
\begin{verbatim}int smp_thread_id(void)
thread_id...
...read(thread_id_t tid)
void wait_all_threads(void)\end{verbatim}
}\end{figure*}



Subsections

Paul E. McKenney 2011-12-16