[692] in Pthreads mailing list archive
Re: CPU hog?
daemon@ATHENA.MIT.EDU (Mark Evans)
Mon Jul 28 12:28:50 1997
Date: Mon, 28 Jul 1997 10:08:20 -0600
From: Mark Evans <mevans@cti-ltd.com>
To: "Andrew N. Edmond" <edmond@shaman.lycaeum.org>
Cc: pthreads@MIT.EDU
You're doing something wrong (no offense). If you send me the
source I'll check it out and see if I can determin what it is.
Andrew N. Edmond wrote:
>
> I have written a pretty simple mutlithreaded application with
> Pthreads/1.60b6. There are two threads, one waiting for input from a
> socket, the other processing data received.
>
> When I run this program (counterd), it's using 100% of the available CPU!
>
> So, I made another program, just one thread, that simply listens on a
> socket, and does nothing else. This too is using 100% of the available
> CPU!
>
> Is there a way to eliminate this behavior?
>
> Andy
>
> :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> \-/ :::::::: Andrew N. Edmond - finger for PGP key :::::::::: \-/
> /-\ :::::: ............ :::::: /-\
> \-/ ::: edmond@lycaeum.org :::::: an1@anon.nymserver.com ::: \-/
> /-\ : Director of the Lycaeum :: the Nymserver Administrator : /-\
> \-/ ::: www.lycaeum.org :::::: www.nymserver.com ::: \-/
> :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
--
Mark Evans
Conservation Through Innovation Ltd.