[690] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

CPU hog?

daemon@ATHENA.MIT.EDU (Andrew N. Edmond)
Mon Jul 28 00:50:08 1997

Date: Sun, 27 Jul 1997 21:33:26 -0700 (PDT)
From: "Andrew N. Edmond" <edmond@shaman.lycaeum.org>
To: pthreads@MIT.EDU

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       ::: \-/
    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


home help back first fref pref prev next nref lref last post