with screnshot
Part 2 You are required to implement using C programing language a multi-threaded program to simulate 3 readers and 3 writer’s threads to enforce synchronization rules: Readers can access to in the same time but writers can access in mutual exclusion with reads and writers. 1) Critical section is a variable var initially set to 0 2) Readers read var and print it along with the thread id and actual number of concurrent readers. 3)
OR
OR