previous | start | next

Current Thread

The thread library maintains a global pointer to the currently executing thread in the process.

uthread_t *ut_curthr;
       

The uthread_init() function must be called (once) by a program that uses the uthread library to initialize the uthread global data structures and to convert the initial thread of the process to a uthread.

This function should initialize the global uthreads array. Each entry should be initialized to indicate not yet in use:



previous | start | next