We can create multiple threads in our C program to execute multiple tasks in parallel. It helps to utilize the CPU resources efficiently. Even though core C programming does not support multithreading, at least until C11 standard, it has a lot of library support for that purpose. POSIX thread or pthread is one of the … Continue reading “Multithreading in C”
Tag: Multithreading
Multithreading
Let’s first understand few related terminologies before understanding multithreading. Program Program or computer program can be viewed as a set of instructions. We generally write programs in high level languages like C or C++. The computer processors can not execute these programs directly. We compile and link them into a binary equivalent that the processors … Continue reading “Multithreading”