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
PayPal Gateway not configured
PayPal Gateway not configured