> While investigating another issue I began to dig a little deeper into how the 
> library operates and it appears to me that the process running the servers 
> never sleeps, is this correct?

Not really.  I don't know what specifically you mean by 'sleep', but - as you 
know - LIVE555-based applications are event driven, and execute code only when 
handling an event.  When there are no events to be handled, then the 
application does not run.  You can call this 'sleeping' if you like.

What you might be referring to, however, is the fact that - in the 
"BasicTaskScheduler" implementation - there is a periodic delayed task called 
"schedulerTickTask()" that runs every 10 milliseconds (not 10 microseconds as 
the comment in the code incorrectly says).  This task does no work, and exists 
only to ensure that the code periodically returns from "select()", to handle 
any triggered events.  But this causes only a brief period of activity (with 
almost no overhead) every 10 ms; for the rest of the time, the application is 
effectively 'sleeping' if there are no other events to be handled.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to