© Sri Manikanta Palakollu 2021
S. M. PalakolluPractical System Programming with Chttps://doi.org/10.1007/978-1-4842-6321-1_2

2. Multithreading in C

Sri Manikanta Palakollu1 
(1)
freelance, Hanuman Junction, Hanuman Junction, 521105, Andhra Pradesh, India
 
Multithreading is a program’s ability to execute multiple threads simultaneously to maximize the utilization of the CPU. Multithreading helps achieve concurrency. Concurrenscy is parallelly executing multiple threads at the same time. In this chapter, you learn about the following topics with practical coding.
  • Introduction to threads and thread behavior

  • The difference between threads and processes

  • Concurrency

  • Parallelism

  • Introduction to multithreading

  • Importance of multithreading

  • Multithreading API in C ...

Get Practical System Programming with C: Pragmatic Example Applications in Linux and Unix-Based Operating Systems now with O’Reilly online learning.

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