[previous] [up] [next]     [contents] [index]
Next: Threads in Embedded MzScheme Up: MzScheme Architecture Previous: Library Functions

Threads

The intializer function scheme_basic_env creates the main Scheme thread; all other threads are created through calls to scheme_thread.

Information about each internal MzScheme thread is kept in a Scheme_Process structure. A pointer to the current thread's structure is available as scheme_current_process. A Scheme_Process structure includes the following fields:

The list of all threads is kept in a linked list; scheme_first_process points to the first thread in the list. The last thread in the list is always the main thread.





PLT