Accessing NSDistantObject from different threads concurrently
Accessing NSDistantObject from different threads concurrently
- Subject: Accessing NSDistantObject from different threads concurrently
- From: Oleg Krupnov <email@hidden>
- Date: Mon, 20 Sep 2010 18:51:57 +0300
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 process.
Now I need to have multiple threads in the client process. Each client
thread must run concurrently with other client threads, so that if two
or more client threads request the server process at the same time,
they should not block waiting for each other. In other words, the
server should probably create a thread for each client thread.
What is the best way to do this? It's not clear how to vend multiple
NSDistantObjects for multiple client threads, and spawning multiple
auxiliary processes for each client thread would be a nightmare...
Thanks,
Oleg.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden