Summary: 100% CPU with thread in a loop
--- 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.
class doNothing : Thread;
Thread test = new doNothing();
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: -------