Pthreads Basics Quiz Pthreads Basics Quiz A quiz on basics of pthreads 1. Which header file needs to be used for pthread programming ?...Read more »
The Magician Of Linux
Pthreads Basics Quiz Pthreads Basics Quiz A quiz on basics of pthreads 1. Which header file needs to be used for pthread programming ?...Read more »
When sharing resources between multiple threads, it is safe to allow multiple readers to access the resource simultaneous as they would not ...Read more »
We saw in the post " " how we can use mutexes in pthreads to achieve synchronization among various threads. Along with the the thr...Read more »
pthreads allows us to create and manage threads in a program. When multiple threads are working together, it might be required that the thre...Read more »
Along with mutexes, pthreads gives us another tool for synchronization between the threads, condition variables. Condition variables are va...Read more »
In the mutex we saw in the post " " , if a mutex is locked by one thread, other threads will wait infinitesly for the mutex when p...Read more »
In the post we saw how we can use mutex to prevent simultaneous usage of the same resource by multiple threads. But usage of mutexes have to...Read more »
pthreads are used to split a process into multiple threads and execute them concurrently. The threads should be independent of each other a...Read more »
Every thread created using pthread_create gets assigned a uniue thread id, with which it is recognized. Note: Refer to creation of threads...Read more »
undefined reference to `pthread_create' The above error is a common error encountered by a number of people who begin writing prog...Read more »
Threads once created using pthread_create,can some times be required to be stopped in between before they complete their execution. This ca...Read more »
In the post " pthread creation " we saw how to create a simple thread and we had used the default attributes for the thread. One ...Read more »
pthreads are posix threads supported by the unix based systems. The pthread library allows us to create multiple threads in the user space a...Read more »