RTC Forums
May 18, 2021, 02:15:36 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Starting a new thread from inside the server  (Read 84 times)
thomh
RTC License+
****
Posts: 14


« on: April 29, 2021, 11:27:25 AM »

Hi,

I have a server built on the same principle as your RTC_WebServer example. For each incoming call from the client a new working thread is created. But is it possible to start such a working thread on the server itself?

Thanks,
Thom
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1852


« Reply #1 on: April 29, 2021, 11:49:35 AM »

Sorry, but I don't understand your question. If a Client connects to a Server, a Thread will be needed on the Server to handle that Clients requests. For that purpose, every RTC Server already manages a Thread Pool (inside the Server Application), from which Threads are allocated as-needed, to handle all Clients requests. In other words, as far as I can tell, what you are asking for - is how things already work now.

Or did I misunderstand your question?

Can you please elaborate and explain with more detail, what is it exactly that you need?

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 16 queries.