sol-Tutorial3 - Question 1 Non-preemptive priority...

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

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
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

  • Spring '10
  • DR
  • Computer multitasking, Context switch, Non-preemptive priority scheduling

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern