Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Questions by sarannya
0
votes
0
answers
1
Semaphore OS
var occupied, var blocked; Entry section: { if(occupied) { blocked = blocked + 1; sleep(); } else occupied = 1; } Exit section: { occupied = 0; if(blocked) { wakeup(process); blocked = blocked - 1; } } which of the following is ... ie, 2 processes could be in critical section. Please elaborate the correct working of this, for all the possible initial values of occupied and blocked.
var occupied, var blocked;Entry section:{ if(occupied) { blocked = blocked + 1; sleep(); } else occupied = 1;} Exit section:{ ...
222
views
asked
Aug 29, 2017
1
votes
1
answer
2
Binary semaphore
In the standard code for UP operation, UP (S) { if(Waiting queue L is empty) S = 1; else Select a process from waiting queue and wake up(); } ( S is the mutex) Here, why S=1 is not set in the else part as well? For eg: if S=0 and ... wake up(); } Or, is it mandatory that a process can enter the critical section only after letting in, all the processes the got blocked before it?
In the standard code for UP operation,UP (S){ if(Waiting queue L is empty) S = 1; else Select a process from waiting queue and wa...
549
views
asked
Aug 6, 2017
1
votes
0
answers
3
Serializable schedules
If a schedule is conflict/view serializable, does it guarantee that it is strict (and hence cascadeless) as well? OR- Does there exist a serializable schedule which is cascading (not cascadeless)?
If a schedule is conflict/view serializable, does it guarantee that it is strict (and hence cascadeless) as well?OR- Does there exist a serializable schedule which is cas...
224
views
asked
Aug 5, 2017
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register