[Mono-bugs] [Bug 624849] BlockingCollection<T> takes 100% cpu when blocking for an element

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jul 31 18:12:05 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=624849

http://bugzilla.novell.com/show_bug.cgi?id=624849#c8


--- Comment #8 from Rickard Edström <ickard at gmail.com> 2010-07-31 22:12:04 UTC ---
Well the idea (and the way it works on .net) is to spin for a short while and
then to resort to kernel waiting operations. From MSDN: "ManualResetEventSlim
uses busy spinning for a short time while it waits for the event to become
signaled. When wait times are short, spinning can be much less expensive than
waiting by using wait handles. **However, if the event does not become signaled
within a certain period of time, ManualResetEventSlim resorts to a regular
event handle wait.**" (emphasis mine)

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list