G
Guest
Could some one please explain to me what the different between Monitor.Enter
and Monitor.Wait is? Does the Monitor.Wait result in the thread entering a
WaitSleepJoin state and not using any CPU cycles (signalled by Pulse) unlike
Monitor.Enter which keeps attempting to acquire the lock? In addition, how
does this differ to AutoResetEvent.Wait.
Thanks in advance for any help.
and Monitor.Wait is? Does the Monitor.Wait result in the thread entering a
WaitSleepJoin state and not using any CPU cycles (signalled by Pulse) unlike
Monitor.Enter which keeps attempting to acquire the lock? In addition, how
does this differ to AutoResetEvent.Wait.
Thanks in advance for any help.