Question: how processes are resumed inside monitor?
Answer: Processes that attempt monitor entry while the monitor is occupied are blocked on a monitor entry queue. To synchronize tasks within the monitor, a condition variable is used to delay processes executing in a monitor. It may be declared only within a monitor and has no numeric value like semaphores do.