In: Computer Science
Use any C program without using PTHREADS calculate time taken to execute program.
| 
 critical section  | 
|||
| 
 mutex solution  | 
|||
| 
 semaphore functions  | 
|||
| 
 Barriers  | 
|||
| 
 Read-Write Locks  | 
Run program using 1, 2, 4, and 8 threads Comparison study
| 
 Number of threads  | 
||||
| 
 Implementation  | 
 1  | 
 2  | 
 4  | 
 8  | 
| 
 critical section  | 
||||
| 
 mutex solution  | 
||||
| 
 semaphore functions  | 
||||
| 
 Barriers  | 
||||
| 
 Read-Write Locks  | 
||||