views:

66

answers:

1

How many tasks are needed for priority inversion to happen??..As per as my understanding we need atleast 3.....or can we have it only with 2 task??

I actually went through a book : modern operating system by Andrew Tanenbaum . I knew only when 3 task are there in some patern as u all know ..a priority inversion can happen..however ..I found the book says only 2 two task 1-low and the 1-high can also cause the same..so I am confused...

+2  A: 

You need one high-priority task which waits for a resource held by a low-priority task, while a mid-priority task is running.

So yes, you need three.

starblue