>I still don't see how I have the servlet check back every so many ms >for an >event or a status flag to be set without performing some sleep() or >wait() >without burning CPU.
His code wasn't without a sleep() call. On Mon, 2004-10-18 at 16:02, Robert Harper wrote: > > It's been a while since I've had to post code on here ;) Here's a > > generic way to spawn a thread and only check on it every X milliseconds, > > instead of all the time, so that you don't "burn the CPU:" > [Robert Harper] > I know how to create threads. I did not intend for you to treat me like a total > newbie but I guess I am. > > I still don't see how I have the servlet check back every so many ms for an > event or a status flag to be set without performing some sleep() or wait() > without burning CPU. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
