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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 22 16:12:29 EDT 2010


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

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


           Summary: BlockingCollection<T> takes 100% cpu when blocking for
                    an element
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ickard at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3
(KHTML, like Gecko) Chrome/6.0.466.0 Safari/534.3

When System.Collections.Concurrent.BlockingCollection<T> waits for an element
to be added, it takes 100% cpu on mono which is inconsistent with .NET.



Reproducible: Always

Steps to Reproduce:
1. Run the program from http://pastie.org/1055970
2. Watch cpu meter
Actual Results:  
CPU usage is 100%

Expected Results:  
CPU usage should be close to 0%, like it is when running on .NET 4.0

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


More information about the mono-bugs mailing list