Deprecated: Implicit conversion from float-string "1531046103.569" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1531046103.569" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1531046103.569" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1531046103.569" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1531046103.569" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1531047787.730" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1531047787.730" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1531047787.730" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1531047787.730" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1531047787.730" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1531048007.736" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1531048007.736" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1531048007.736" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1531048007.736" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1531048007.736" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Databases: dbms doubt
closed by
300 views
0 votes
0 votes
closed with the note: got the answer
Can there be two processes X and Y such that

a. they suffer from both mutual exclusion and deadlock problem

b. they suffer from deadlock but not mutual exclusion problem

c. they suffer from mutual exclusion but not deadlock problem
closed by

1 Answer

Best answer
1 votes
1 votes

$a$ and $c$ could be possible. But $b$ can not be possible.


Mutual Exclusion is one of the Necessary Conditions for Deadlock situation on a Resource. 

So, If there is No Mutual Exclusion between Two Processes, then There can not be any Deadlock situation on a Resource.

So, Two Processes $X$ and $Y$ can never suffer from Deadlock situation on a Resource If there is No Mutual Exclusion between Those Processes.


Quick Revision :

Necessary conditions for Deadlock on Resources :

A deadlock situation on a resource can arise if and only if all of the following conditions hold simultaneously in a system:

  1. Mutual exclusion: At least one resource must be held in a non-shareable mode. Otherwise, the processes would not be prevented from using the resource when necessary. Only one process can use the resource at any given instant of time.
  2. Hold and wait or resource holding: a process is currently holding at least one resource and requesting additional resources which are being held by other processes.
  3. No preemption: a resource can be released only voluntarily by the process holding it.
  4. Circular wait: each process must be waiting for a resource which is being held by another process, which in turn is waiting for the first process to release the resource. In general, there is a set of waiting processes, P = {P1P2, …, PN}, such that P1 is waiting for a resource held by P2P2 is waiting for a resource held by P3 and so on until PN is waiting for a resource held by P1.
selected by

Related questions


Deprecated: Implicit conversion from float-string "1691046403.431" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1691046403.431" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1691046403.431" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1691046403.431" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1635835652.880" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1635835652.880" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1635835652.880" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1635835652.880" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1560153199.820" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1560153199.820" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1560153199.820" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1560153199.820" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1559870388.071" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1559870388.071" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1559870388.071" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1559870388.071" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
430
views
1 answers
0 votes
Rahhul A asked Aug 3, 2023
430 views
Consider the below instance of relation : Employee: Emp_ratingEmp_nameEmp_mailEmp_sal1.Surabhism301@gj400002.Vishusp11@ap600001.SurabhiNull500003.Yashyar@dy60000 The maxi...
454
views
1 answers
0 votes
atulcse asked Nov 2, 2021
454 views
Can a schedule be serializable if it is not view serializable? Are conflict equivalence and view equivalence the only two ways to decide if a schedule is serializable?
598
views
1 answers
0 votes
Hirak asked Jun 10, 2019
598 views
Is basic 2 phase locking always recoverable?
462
views
1 answers
1 votes
manisha11 asked Jun 7, 2019
462 views
In case of B Trees we split a node on insertion in case of overflow,is there any possible case in which this may lead to underflow also? as a key is promoted to parent th...