[Live-devel] Scheduler Questions

Jeff Oliver Jeffrey.Oliver at mascorp.com
Mon Feb 9 17:53:09 PST 2004


Not knowing the nitty gritty of the scheduler used in the streamer 
library, I have a question about a sequence of events as such.

I have modified the library to allow for skipping though the file (i.e. 
Fast Forward).  So...a client issues a PLAY command and the media starts 
to stream.  Each time a RTP packet is created, the file source is read, 
hence the file pointer moves.  The client then sends another PLAY 
command which instructs the server to start fast forwarding.  I kick off 
a delayed task that does a fseek on the file.

The potential issue I have is doing the fseek at the same time as the 
fread.  How does the scheduler work?  Do i have to mutex these 
accesses?  Or is everything still single threaded, so it wouldnt be a 
big deal.

The follow up question is, im targeting this application to a dual Xeon 
system, so if this scheduler is single threaded, is it feasible to 
convert it to a multi-threaded application?  Would it buy me anything if 
I did?

Jeff Oliver



Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Matsushita Avionics 
Systems Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission 





More information about the live-devel mailing list