Course Solutions Uncategorized (Solved) : Operating Systems 1 Consider Following Variation Implementation Condition Variables Nachos Q36308712 . . . .

(Solved) : Operating Systems 1 Consider Following Variation Implementation Condition Variables Nachos Q36308712 . . . .

 

Operating Systems:

1) Consider the following variation of the implementation ofcondition variables in Nachos, where we comment out lines thatassert that a lock is held by the current thread.

Is this still a correct implementation of condition variables?If so, explain why. If not, explain why not. More specifically,suppose we have 2 threads. The first one can context switch rightbefore calling P() to the second thread that calls wake(). Can thissignal still be caught by the first thread? What about multiplecalls to wake() by the second thread before returning to the firstthread?

public class Condition { private Lock conditionLock; private LinkedList<Semaphore> waitQueue; public Condition (Lock conditio

public

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post