while going through various synchronization mechanism like semaphore, mutex. I stopped at Monitor. I want to know how it is differ from semaphore and mutex. when use of monitor is preferable than semaphore and mutex ?
Say there is a function fun(p1, p2, p3, p4);
Is Context switching possible after pushing p1, p2 and before pushing p3 and p4 in stack ?
I have read somewhere workload is nothing but a group of processes running under same compartment. Where compartment is n- Partition / virtual partition.
Is it correct?