439 views
0 votes
0 votes

Please explain why??what are monitors??

1 Answer

Best answer
1 votes
1 votes

Monitors are operating system resources which is nothing but a collection of procedures, variables and data structures.

They are used to achieve atomic mutual exclusion and process synchronization.

Two important point should kept in mind

1) Only one thread can run inside monitor at a time so mutual exclusion always achieved

2) If another thread try to execute monitor process it is blocked until the first completed it's execution, thus more restrictive than semaphore

For more reference

http://www.geeksforgeeks.org/monitors/

selected by

Related questions

0 votes
0 votes
1 answer
1
Nancy Pareta asked Jun 11, 2018
275 views
1 votes
1 votes
1 answer
2
shefali1 asked Nov 8, 2017
431 views
0 votes
0 votes
1 answer
3
shefali1 asked Nov 4, 2017
316 views
in ans safe sequence given is P3P1P4P0P2...but according to me its wrong...correct me if wrong????