Question: CS4315 Operating Systems Lab 3: Basic Synchronization using Mutex In this lab work we will do some practice about basic synchronization. Question 1 is about
CS4315 Operating Systems Lab 3: Basic Synchronization using Mutex In this lab work we will do some practice about basic synchronization. Question 1 is about creating threads and each thread runs a different function. Question 2 and 3 are about mutex lock (acquiring a lock and releasing a lock). 1. Run the following C program (tprog1.c) and observe the result on the screen. #include
3. Add mutex locks to tprog2.c to achieve synchronization, and then observe the result on your screen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
