Chapter 2

Introducing Threads

Abstract

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.

Keywords

Threads

Concurrent and parallel execution

Programming and execution model

Life of a thread

2.1 Applications ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.