c# - what exactly happens when ManualResetEvent.WaitOne is called? -
recently came across msdn link says manualreseteventslim class can used better performance when compared manualresetevent class.
"in .net framework 4, can use system.threading.manualreseteventslim class better performance when wait times expected short".
https://msdn.microsoft.com/en-us/library/5hbefs30%28v=vs.110%29.aspx
please correct me if understanding wrong.
when waitone(1000) called 1 sec
- the windows, apart blocking other threads executing, makes current thread sleep time , wakes when notified.
- here word blocking means thread sleeps time until notified?
what sentence mean - "when wait times expected short"?
can suggest websites understand internal process of waitone
Comments
Post a Comment