Question: Write a C program to control an escalator using threading and synchronization techniques. The escalator can move bidirectional from up to down or from down

Write a C program to control an escalator using threading and synchronization techniques. The escalator can move bidirectional from up to down or from down to up. If there is people going down, no one can use the escalator to go up and vice-versa unless the escalator is empty. Useful Libraries #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
