You can use this assignment in your class!
Mastery Progress(100.0%)
i

Suppose a thread holds a mutex lock and gets preempted, what does it do with the lock?

You answeredJUST NOW

(Student response here)

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Nalin GaddisMAY 10, 2021, 8:49:15 AM

It retains the lock so that no other thread can get into the critical section it is currently in.

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?

When a thread gets preempted which queue does it get placed on?

Select one of the following options:
  • A.

    The scheduler's queue

  • B.

    A mutex queue

  • C.

    Suspended queue

  • D.

    None

Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

You may exit out of this review and return later without penalty.