2.1.0.2 Thread.

A process has at least one thread. A thread is the `context' that is necessary to execute code sequentially as specified by a program's source code. A process can have multiple threads, but all these threads must share all variables and data structures that are either statically allocated or allocated via dynamic memory allocation. On the other hand, threads do not share any variables or objects that are stack based.

In most implementations, every thread has its own stack. Exceptions include the real-time kernel (RTK.lib) published by Z-World, Inc. at least up to 1998. The author has not checked the latest version of the real-time kernel from Z-World since 1998.



Copyright © 2008-10-25 by Tak Auyeung