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 ?
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 ?