Re: Multithreaded Server Policy



Hi Anil,

On Mon, 2002-01-28 at 06:57, anil kumar wrote:
>   In  ORBit2  can we have a concurrent server which on request from a
> multithreaded client  processes each client request in a new thread.

	No. Essentially no; in more detail - there is AFAIK no way the client
can request how it's invocation should be processed - the server
implementation must setup it's POA to handle a request per thread.

>   Suppose i have a client which has three threads cth1 cth2 & cth3.
>  
>  Now each thread invoke an operation on server .How the requests would be
> handled by  server?
> 
>  a: Server would make a queue of all three requests and after completion
> of one request it would   remove another request from the queue and
> process. 

	It's handled like this - except that whenever a CORBA method is
invoked, (perhaps during the server processing a request) incoming data
can be handled, so possibly the handling of all 3 requests might be on
the stack at once. [ that is if during handling a slow CORBA call was
made ].

>  b: Server would create 3 threads and process  each client request in
> different thread.

	This mode is as yet to be supported by ORBit2 - which while it has some
chunks of infrastructure necessary to be threadsafe is not currently.

	Regards,

		Michael.

-- 
 mmeeks@gnu.org  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]