Chapter 2

Introducing Threads


All the basic concepts and facts on multithreading processing that are totally generic and independent of the different programming environments are introduced in this chapter. They describe the way multithreading is implemented in existing computing platforms. In particular, the memory organization of sequential and multithreaded processes and the way a multithreaded process is executed in a multiprocessor computing platform are discussed. A description is given of the different possible states of a thread during its life cycle, as well as the transitions that are controlled by the programmer.



Concurrent and parallel execution

Programming and execution model

Life of a thread

2.1 Applications ...

Get Shared Memory Application Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.