Re: Accessing NSDistantObject from different threads concurrently

2010-09-23 Thread Oleg Krupnov
So, how do I implement multiple threads in the server process? I have the following idea: Vend many objects. First, vend a root object in the server process and then have it create new server threads by client request and return a connection name to the client. The new server thread creates a con

Re: Accessing NSDistantObject from different threads concurrently

2010-09-20 Thread Oleg Krupnov
Thanks, Kyle > Multithreading is not a prerequisite for serving multiple clients. Depending > on what your server's doing, sticking with NSRunLoop-based multiplexing might > be a lot easier. The server's job is associated with slow devices, such as disk, but are quite lengthy in time. In your s

Re: Accessing NSDistantObject from different threads concurrently

2010-09-20 Thread Kyle Sluder
On Sep 20, 2010, at 8:51 AM, Oleg Krupnov wrote: > Hi, > > I have a main process and an auxiliary process that vends > NSDistantObject to do some job for the main process upon request. In > other words, the main process is a client, and the auxiliary process > is a server. I have been able to im

Accessing NSDistantObject from different threads concurrently

2010-09-20 Thread Oleg Krupnov
Hi, I have a main process and an auxiliary process that vends NSDistantObject to do some job for the main process upon request. In other words, the main process is a client, and the auxiliary process is a server. I have been able to implement this when there is only one thread in the client proces