Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Which of the following statements is not true... Start Learning for Free
Which of the following statements is not true?
  • a)
    Deadlock can never occur if resources can be shared by competing processes.
  • b)
    Deadlock can never occur if resources must be requested in the same order by processes.
  • c)
    The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advance
  • d)
    If the resource allocation graph depicts a cycle then deadlock has certainly occured.
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Which of the following statements is not true?a)Deadlock can never occ...
Deadlock can’t take place if resources must be requested in same order by process. For deadlock, circular wait is a must condition.
View all questions of this test
Most Upvoted Answer
Which of the following statements is not true?a)Deadlock can never occ...
's algorithm is used to prevent deadlocks in a system.d)Deadlock occurs when each process is holding onto resources while waiting for other resources to become available.

a) Deadlock can never occur if resources can be shared by competing processes. This statement is not true as deadlock can still occur even if resources are shared by competing processes. Deadlock occurs when each process is waiting for a resource that is held by another process, and sharing resources does not guarantee that deadlock will not occur.
Free Test
Community Answer
Which of the following statements is not true?a)Deadlock can never occ...
Deadlock occurs when a common variable is shared .
And ,

When you request or execute the processes in same order , you will never face deadlock or spin lock situations .

The reason is quite simple :-

Problem is with RW , WR , WW at the same time but here , we are requesting or executing the processes in the same order , then for eg :-
There are 2 processes P1 and P2 , We are going to execute them in same order . Means , we are going to first execute P1 or P2 and then we are going to execute P2 or P1 . Means we are first completely executing one process and when they terminate successfully then the another one.

So , in this case , we can se that the two processes are not doing anything at the same time. So here , even spinlock is not there and so there is not a chance of deadlock .

I hope you are able to understand this concept.

Thanks.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer?
Question Description
Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer?.
Solutions for Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Which of the following statements is not true?a)Deadlock can never occur if resources can be shared by competing processes.b)Deadlock can never occur if resources must be requested in the same order by processes.c)The Banker’s algorithm for avoiding deadlock requires knowing resource requirements in advanced)If the resource allocation graph depicts a cycle then deadlock has certainly occured.Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev