<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>