- Whenever you call pthread_create to create a new thread, Linux creates a new process that runs that thread.
- However, this process is not the same as a process you would create with fork; in particular, it shares the same address space and resources as the original process rather than receiving copies.
- The manager thread is created the first time a program calls pthread_create to create a new thread. http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/thread-pid.cthread-pid.c (see Fig. 0.1)
Figure 2:
Print Process IDs for Threads
|
2006-03-31