Skip to main content
Question Unprotected by D.W.

A system has 6 identical resources and $N$ processes competing for them. Each process can request at most two requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt:

Deadlock free condition is:

$R \geq P(N-1)+1 ,$

Where R is total number of resources,

P is the number of processes, and

N is the max need of resources by each resourceprocess.

$6 \geq P(2-1) + 1$

$6 \geq P + 1$

$5 \geq P$

So, the number of processes should be less than $5$ for the deadlock free condition.

Hence, all options can not be deadlocked.


In this exercise problem the answer given option (4).

Can you explain it in a formal way, please?

A system has 6 identical resources and $N$ processes competing for them. Each process can request at most two requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt:

Deadlock free condition is:

$R \geq P(N-1)+1 ,$

Where R is total number of resources,

P is the number of processes, and

N is the max need of each resource.

$6 \geq P(2-1) + 1$

$6 \geq P + 1$

$5 \geq P$

So, the number of processes should be less than $5$ for the deadlock free condition.

Hence, all options can not be deadlocked.


In this exercise problem the answer given option (4).

Can you explain it in a formal way, please?

A system has 6 identical resources and $N$ processes competing for them. Each process can request at most two requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt:

Deadlock free condition is:

$R \geq P(N-1)+1 ,$

Where R is total number of resources,

P is the number of processes, and

N is the max need of resources by each process.

$6 \geq P(2-1) + 1$

$6 \geq P + 1$

$5 \geq P$

So, the number of processes should be less than $5$ for the deadlock free condition.

Hence, all options can not be deadlocked.


In this exercise problem the answer given option (4).

Can you explain it in a formal way, please?

added 4 characters in body
Source Link

A system has 6 identical resources and $N$ processes competing for them. Each process can request at most two requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt:

Deadlock free condition is:

$R \geq P(N-1)+1 ,$

Where R is total number of resources,

P is the number of processes, and

N is the max need of each resource.

$6 \geq P(2-1) + 1$   

$6 \geq P + 1$   

$5 \geq P$

So, the number of processes should be less than $5$ for the deadlock free condition.

Hence, all options can not be deadlocked.


In this exercise problem the answer given option (4).

Can you explain it in a formal way, please?

A system has 6 identical resources and $N$ processes competing for them. Each process can request at most two requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt:

Deadlock free condition is:

$R \geq P(N-1)+1 ,$

Where R is total number of resources,

P is the number of processes, and

N is the max need of each resource.

$6 \geq P(2-1) + 1$  $6 \geq P + 1$  $5 \geq P$

So, the number of processes should be less than $5$ for the deadlock free condition.

Hence, all options can not be deadlocked.


In this exercise problem the answer given option (4).

Can you explain it in a formal way, please?

A system has 6 identical resources and $N$ processes competing for them. Each process can request at most two requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt:

Deadlock free condition is:

$R \geq P(N-1)+1 ,$

Where R is total number of resources,

P is the number of processes, and

N is the max need of each resource.

$6 \geq P(2-1) + 1$ 

$6 \geq P + 1$ 

$5 \geq P$

So, the number of processes should be less than $5$ for the deadlock free condition.

Hence, all options can not be deadlocked.


In this exercise problem the answer given option (4).

Can you explain it in a formal way, please?

Question Protected by CommunityBot
Copy edited (e.g. ref. <http://english.stackexchange.com/questions/4645/is-it-ever-correct-to-have-a-space-before-a-question-or-exclamation-mark#comment206109_4645>).
Source Link

A system has 6 identical resources and $N$ processes competing for them. Each process can request atmost 2at most two requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt  :

Deadlock free condition is  :

$R \geq P(N-1)+1 ,$

Where R is total number of resources  ,

P is the number of processes  , and

N is the max need of each resource  .

$6 \geq P(2-1) + 1$
  $6 \geq P + 1$
  $5 \geq P$

So  , the number of processes should be less than $5$ for the deadlock free condition.

Hence, all options can not be deadlock deadlocked.


In this exercise problem answerthe answer given option (4).

Can you explain it in a formal way, please?

A system has 6 identical resources and $N$ processes competing for them. Each process can request atmost 2 requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt  :

Deadlock free condition is  :

$R \geq P(N-1)+1 ,$

Where R is total number of resources  ,

P is the number of processes  , and

N is the max need of each resource  .

$6 \geq P(2-1) + 1$
  $6 \geq P + 1$
  $5 \geq P$

So  , number of processes should be less than $5$ for deadlock free condition.

Hence, all options can not be deadlock .


In this exercise problem answer given option (4).

Can you explain in formal way, please?

A system has 6 identical resources and $N$ processes competing for them. Each process can request at most two requests. Which one of the following values of $N$ could lead to a deadlock?

  1. 1
  2. 2
  3. 3
  4. 4

My attempt:

Deadlock free condition is:

$R \geq P(N-1)+1 ,$

Where R is total number of resources,

P is the number of processes, and

N is the max need of each resource.

$6 \geq P(2-1) + 1$ $6 \geq P + 1$ $5 \geq P$

So, the number of processes should be less than $5$ for the deadlock free condition.

Hence, all options can not be deadlocked.


In this exercise problem the answer given option (4).

Can you explain it in a formal way, please?

added 7 characters in body
Source Link
Loading
Tweeted twitter.com/StackCompSci/status/657933170961174528
added 7 characters in body
Source Link
Loading
edited body
Source Link
Loading
Source Link
Loading