Re: Event and CPU usage while idle

2002-02-09 Thread Allen Smith
On Feb 9, 10:09am, Joshua N Pritikin wrote: > On Sat, Feb 09, 2002 at 09:22:57AM -0500, Colin Murtaugh wrote: > > I can try that. I know that if I just open a file and do a "while > > ()" loop to read it, it blocks when there's no input. That's fine > > as long as that file is the only source of

Re: Event and CPU usage while idle

2002-02-09 Thread Joshua N Pritikin
On Sat, Feb 09, 2002 at 09:22:57AM -0500, Colin Murtaugh wrote: > I can try that. I know that if I just open a file and do a "while > ()" loop to read it, it blocks when there's no input. That's fine > as long as that file is the only source of events, but I want to have > others as well. Yah

Re: Event and CPU usage while idle

2002-02-09 Thread Colin Murtaugh
I can try that. I know that if I just open a file and do a "while ()" loop to read it, it blocks when there's no input. That's fine as long as that file is the only source of events, but I want to have others as well. Thanks- Colin On Fri, 2002-02-08 at 21:45, Joshua N Pritikin wrote: > On

Re: Event and CPU usage while idle

2002-02-08 Thread Joshua N Pritikin
On Fri, Feb 08, 2002 at 03:37:17PM -0500, Colin Murtaugh wrote: > I'm trying to use Event.pm to do some pretty basic event handling > (watching for incoming data on a named pipe, and eventually some timers) > but I keep having trouble with CPU usage. Seems that once the loop > starts, my script u

Event and CPU usage while idle

2002-02-08 Thread Colin Murtaugh
Hi -- I'm trying to use Event.pm to do some pretty basic event handling (watching for incoming data on a named pipe, and eventually some timers) but I keep having trouble with CPU usage. Seems that once the loop starts, my script uses all available cpu. The script I'm using to test with is belo