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

--- Comment #0 from 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();

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:
------- You are receiving this mail because: -------

Reply via email to