[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] thread makes csi eats lots of cpu
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] thread makes csi eats lots of cpu |
Date: |
Fri, 11 Jul 2008 08:33:27 +0200 |
On Fri, Jul 11, 2008 at 3:16 AM, William Xu <address@hidden> wrote:
>
> It prints the first number 0, which is called before thread-sleep!.
> After that, it'll wait for me to input something random(here, "what?"),
> then it'll continute running the thread.
On Linux this runs fine, but I'll check that (should I ever get a chance
to hack some Scheme in the next days, which I doubt...).
>
> The other problem is that after running this thread, and even after it's
> finished, csi starts to takes up to around 97% cpu usage!! on my dual
> core macbook. Then I have to restart csi.
When the counter reaches five, your thread goes into an endless loop.
This will of course consume all CPU time.
cheers,
felix