<div dir="ltr"><div><div><div><div>I have used live555 for quite a while and what you need to understand is that live555 does internally what an operating system does at a more generic level. Jump between tasks. An operating system has knwo knowledge so it slices tasks and must preserve and restore context. By using an event loop to handle descrite similar and complete tasks, the code never has to concern itself with locks or mutexes or context switching in the middle of a task. It can have high throughput with low resources and remain easier to debug.<br><br></div>You will have a RTSPClient for each connection. They will all share just share the same environment and task scheduler. <br><br></div>I have done 255-300 cameras on a single thread on what is now 10 year old hardware.<br><br></div>However, if it is advantages to have multiple threads, like to help the operating system take better take advantage of multiple cores, the rule is that each thread must have it's own environment and task scheduler.<br><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 8:39 PM, <span dir="ltr"><<a href="mailto:zhouhaijun@uniview.com" target="_blank">zhouhaijun@uniview.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="幼圆" size="4">Dear Sir or Madam,</font><font face="Verdana" size="2"> </font><font face="幼圆" size="4"><br>
I'm very glad to use live555 to develop
our project.And now I encountered a few questions when developing a program
for our project.</font><font face="Verdana" size="2"> </font><font face="幼圆" size="4"><br>
I want to develop a rtspclient
program to connect more cameras via live555 at one time, and dynamically
add or delete these connected resouces.</font><font face="Verdana" size="2"> </font><font face="幼圆" size="4"><br>
Our team want to modify "testRTSPClient"
demo application, and create multi-thread for camera connections. But this
is dificult because live555 is designed for single thread.Could you
please give me some advice on this work?</font><font face="Verdana" size="2"> </font><font face="幼圆" size="4"><br>
Thanks a lot.</font><font face="Verdana" size="2"> </font><font face="Arial" size="2"><br>
</font><font face="幼圆" size="4"><br>
Regards,</font><font face="Verdana" size="2"> </font><font face="幼圆" size="4"><br>
NavyJay</font><font face="Verdana" size="2"> </font><font face="幼圆" size="4"><br>
March 17, 2016</font>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有浙江宇视科技有限公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发本邮件中的信息。如果您错收了本邮件请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from Uniview, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
<br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="noreferrer" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br></div>