sol-Tutorial3

sol-Tutorial3 - finds favoredThread = 1, and enters its...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Question 1 Non-preemptive priority scheduling scheme has the worst results under this process set. Question 2 No, it cannot support mutual exclusion. Consider the case in which favoredThread equals 1 and T2 sets t2WantsToEnter to true and then finds t1WantsToEnter set to false. Then context switching happens. T1 also sets t1WantsToEnter to true, then
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: finds favoredThread = 1, and enters its critical section. Before leaving the critical section, there is a context switching. T2 will then continue, and assign 2 to favoredThread and will also enter its critical section....
View Full Document

This note was uploaded on 12/01/2010 for the course CS 2342 taught by Professor Dr during the Spring '10 term at HKU.

Ask a homework question - tutors are online