http://d.puremagic.com/issues/show_bug.cgi?id=3859
Summary: 100% CPU with thread in a loop Product: D Version: 1.053 Platform: x86 OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bre...@seznam.cz --- Comment #0 from bre...@seznam.cz 2010-02-27 02:17:30 PST --- When I create a thread in a while loop, the first time it is created it works, the second time dual-core CPU gets up to 100% load and stucks in there. Tested with DMD 1.053. When compiled with latest GDC, only one core gets to 100%, the other one is fine. Code: class doNothing : Thread; while(condition){ Thread test = new doNothing(); test.start; test.wait(1000); } Reproducible: Always. System: Ubuntu 9.10, x86, Core 2 Duo The doNothing thread just wastes CPU cycles, I wrote it as a test for the wait() method. The test instance gets terminated after the second that is waited in wait(). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------