GATE Exam  >  GATE Questions  >   Which of the following is/are true?a)While a... Start Learning for Free
Which of the following is/are true?
  • a)
    While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.
  • b)
    Priority Inversion is the solution to the Live Lock problem.
  • c)
    In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.
  • d)
    All of the above.
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
Which of the following is/are true?a)While a process is blocked on a ...
1. Option A is false, because semaphores are the solution used to avoid busy waiting.
2. Option B is false, Since Priority inversion causes the problem of LiveLock and priority Inheritance is the solution for Live Lock.
3. Option C is true.
View all questions of this test
Most Upvoted Answer
Which of the following is/are true?a)While a process is blocked on a ...
Explanation:

In the given options, option 'C' is true. Let's understand each option one by one to understand why option 'C' is the correct answer.

a) While a process is blocked on a semaphore queue, then this waiting is known as busy waiting:
This statement is false. When a process is blocked on a semaphore queue, it is not considered as busy waiting. Busy waiting refers to a situation where a process continuously checks for a condition to be true without yielding the CPU. In the case of a semaphore queue, the process is blocked and not actively checking for a condition.

b) Priority Inversion is the solution to the Live Lock problem:
This statement is false. Priority inversion and live lock are two different problems and have different solutions.
- Priority inversion occurs when a low-priority task holds a resource required by a high-priority task, causing the high-priority task to wait. The solution to priority inversion is priority inheritance or priority ceiling protocol.
- Live lock, on the other hand, occurs when processes repeatedly change their states in response to changes in the system, but no progress is made. The solution to live lock is to eliminate the conditions that cause the processes to repeatedly change their states.

c) In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock:
This statement is true. In deadlock avoidance, the system checks for the possibility of a deadlock before allocating resources to a process. If the system is in an unsafe state, it means that the allocation of resources can potentially lead to a deadlock. An unsafe state occurs when there is a possibility for a deadlock, and the detection algorithm cannot guarantee that a deadlock will not occur.

Therefore, the correct answer is option 'C' - In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.
Explore Courses for GATE exam
Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer?
Question Description
Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer?.
Solutions for Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer?, a detailed solution for Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer? has been provided alongside types of Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Which of the following is/are true?a)While a process is blocked on a semaphore queue, then this waiting is known as busy waiting.b)Priority Inversion is the solution to the Live Lock problem.c)In Deadlock Avoidance, if the system is in an unsafe state, then there is a possibility for deadlock.d)All of the above.Correct answer is option 'C'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
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