Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Knowledge Base

   Products   Downloads   Sales   Support   About us
  Knowledge Base  Ask Cody  Manuals  Source Code Library  Resources



        
 
Distinct RPC for C, C++, Delphi : Server Multithreading frequently asked questions
 

Page 1 of 1  

Product: Distinct RPC for C, C++, DelphiTopic: Server MultithreadingLast updated: 3/30/2008
 
Q.: I have my own threading class that takes care of race conditions when starting and shutting down a thread. I would like to call the server_proc from within it. What calls should I use?
A.: If you want your code to handle the multithreading, use the svc_run() or svc_run_ex(0) calls to run the server.

 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for C, C++, DelphiTopic: Server MultithreadingLast updated: 3/30/2008
 
Q.: Is there any difference in the way svc_run_ex(0) and svc_run_ex(n) work between version 3.1 and 4.01?
A.: There is no difference as far as UDP connections go. That is if svc_run_ex(0)is called, RPC runs without any threads and deals with the requests one by one. If svc_run_ex(n)is called this means that RPC runs with [n] pre-created threads and deals with the requests using all available threads. In this way, the thread number is limited to [n] regardless of how many clients are connected to server.

For TCP connections however a new thread is created for any new connected client regardless of whether svc_run_ex(0) or svc_run_ex(n) is called.
 
Do you find this information useful ?       Yes   No   Not Sure

Page 1 of 1  

Search by Keyword


If you did not find what you are looking for:


Products

 Network Monitor
The Distinct Network Monitor is a protocol analyzer for Windows that includes both packet sniffing and network traffic statistical analysis tools.

 Intelliterm
The Most Complete Terminal Emulator for TN3270, TN5250 and DEC VT220 to VT420

 RPC for C and C++
The Fastest Way to Port Your Existing Unix-RPC Applications to Windows

  7/24/2008   Legal notices | PRIVACY Policy | Networking News |         Page Last Modified: 3/31/2008