[Live-devel] Multi-Threading

shen zhao zhaoshengkui9 at yahoo.com
Sun Nov 21 18:19:35 PST 2004


I can use it to support multiple clients (only tested
"testOnDemandRTSPServer") without changing anything of
the live library when I tested on one computer..how
did you test it?


--- Roozbeh Zabihollahi <ruzbeh at gmail.com> wrote:

> Dear Ross,
> Thanks for your great implementation of rtsp
> protocol. I read faq doc
> and thread section of it. but I want to ask
> possibility of integrating
> threads in the app. could I have multiple
> UserEnvronment(s) in
> different threads?
> 
> If you say threading is very difficult and some kind
> impossible have
> you an idea about multiprocessing? I mean I could
> fork a process for
> every client and let it run in its own process. is
> this kind of
> simultaneously possible?
> 
> About testOnDemandRTSPServer, I tested it with my
> own JpegSource. the
> server works well in simple client mode but when i
> attached two
> clients with it, the server fails to serve both of
> them. If you have
> suggestions about what can i do for having
> simultaneous clients with
> server please help me.
> 
> Thank you very much,
> - - Roozbeh
> 
> On Sun, 21 Nov 2004 02:00:47 -0800, Ross Finlayson
> <finlayson at live.com> wrote:
> > At 01:19 AM 11/21/04, you wrote:
> > >Dear liveMedia professionals,
> > >I want to use liveMedia as a stream server and I
> want the library
> > >works in multi-threaded way.
> > 
> > See
> <http://www.live.com/liveMedia/faq.html#threads>
> > 
> > To everyone: If you haven't already done so,
> please read the FAQ:
> > <http://www.live.com/liveMedia/faq.html>
> > 
> > >I tested server with two simultaneous clients and
> server fails to
> > >serve clients.
> > 
> > If by "server" you mean the
> "testOnDemandRTSPServer" demo program, then
> > yes, this server *can* serve two (or more)
> simultaneous clients concurrently.
> > 
> > >  I tried several sources but i could not find
> the
> > >problem. It seems the library could not serves
> two client in same
> > >time.
> > 
> > This is incorrect.
> > 
> >        Ross Finlayson
> >        LIVE.COM
> >        <http://www.live.com/>
> > 
> > _______________________________________________
> > live-devel mailing list
> > live-devel at lists.live.com
> > http://lists.live.com/mailman/listinfo/live-devel
> >
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com
> http://lists.live.com/mailman/listinfo/live-devel
> 



		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 



More information about the live-devel mailing list