Chapter 10 ▪ Concurrency
You are probably familiar with multitasking—your operating system’s ability to have more than one program working at what seems like the same time. For example, one program can print while you are editing a file or downloading your email. The operating system manages processes for different programs and switches between them, giving the impression of concurrent activity.
Multithreaded programs extend the idea of multitasking by taking it one level lower. Individual programs can execute multiple tasks concurrently. Each task is executed in a thread. Programs that can run more than one thread at once are said to be multithreaded.
Multithreading is extremely useful in practice. For example, a browser should be able ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access