This repository contains exercise programs on pthreads. The aim of these exercise is to get a bigger picture on the working of threads.
-
This exercise problem creates two threads which runs indifinitely.
-
This exercise shows how mutex_locks are used.
-
This sample problem is to find out how semaphore works.
-
Producer Consumer problem implemented using semaphores.
-
Dining Philosophers problem with the help of mutex_locks.
-
Problem which tries to implement teh concept of semaphore with mutexes and condition variables.