edited by
1,941 views
2 2 votes

2 Answers

Best answer
3 3 votes
Some times deadlock free.Lets assume process i started executing, and executed until flag1=true and preempted, now process j is executing flag2=true and as flag1=true it will busy wait , again if its preempted process i will busy wait thus deadlock will occur. If process i or j executes without preemption, assuming flags values are initially false then mutual exclusion is there.
selected by
0 0 votes
from code we can understand that sometimes deadlock is there as well ,code is not guarantee the ME so option a and b are not true and d said that "never guarantee" the ME,but code is sometimes allow the ME . so ans is option C.
Position:
Show:

Related questions

0 0 votes
0 0 answers
1.7k
1.7k views
Harsh Mehta asked Jan 13, 2018
1,683 views
I understand the Question Correctly. i know Mutual Exclusion ,But Can Anyone explain What is MUTUAL INCLUSION, ??
0 0 votes
0 0 answers
1.2k
1.2k views
Magma asked Nov 19, 2018
1,169 views
I think that statement iii is false , deadlock can arise in both semaphore as well as monitor (mutex)
1 1 vote
0 0 answers
961
961 views
Abhishek Kumar Singh asked Dec 31, 2017
961 views
When multiple processes in a typical IPC environment concurrent tries to update the value of a shared variable, it may result inI) Inconsistency in the value of a variabl...
2 2 votes
4 4 answers
1.2k
1.2k views