© 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 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.