Threads

References:

  1. Abraham Silberschatz, Greg Gagne, and Peter Baer Galvin, "Operating System Concepts, Eighth Edition ", Chapter 4

4.1 Overview

4.1.1 Motivation


new

4.1.2 Benefits

4.1.3 Multicore Programming

4.2 Multithreading Models

4.2.1 Many-To-One Model


Figure 4.5

4.2.2 One-To-One Model


Figure 4.6

4.2.3 Many-To-Many Model


Figure 4.7


Figure 4.8

4.3 Thread Libraries

4.3.1 Pthreads


Figure 4.9

4.3.2 Win32 Threads


Figure 4.10

4.3.3 Java Threads

4.4 Threading Issues

4.4.1 The fork( ) and exec( ) System Calls

4.4.2 Cancellation

4.4.3 Signal Handling

4.4.4 Thread Pools

4.4.5 Thread-Specific Data

4.4.6 Scheduler Activations


Figure 4.12

4.5 Operating-System Examples

4.5.1 Windows XP Threads


Figure 4.13

4.5.2 Linux Threads

 
flag Meaning
CLONE_FS File-system information is shared
CLONE_VM The same memory space is shared
CLONE_SIGHAND Signal handlers are shared
CLONE_FILES The set of open files is shared

4.6 Summary