Threaded Server using Distributed Objects
Threaded Server using Distributed Objects
- Subject: Threaded Server using Distributed Objects
- From: Alan Shouls <email@hidden>
- Date: Sat, 21 Mar 2009 10:33:12 +0000
Hi,
I am implementing a simple client/server using Distributed Objects. I
have a single server and a small number of clients. The clients are
all on the same machine so I communicate using an NSMachPort, and use
'NSConnection' 'registerName' to register a single connection name on
which to communicate. It all works fine. My only issue is that the
server is not threaded - so if if one client asks the server to do
something time-consuing the the request coming from a different next
client will have to wait.
So on to my question. I would like to implement a threaded server,
what I mean is I would like to have a small number of threads so that
concurrent requests can happen. If one thread is busy then the a free
thread can take up the challenge. Is it possible to have this on a
single named connection? If so could someone give me a few pointers or
a leg-up as to how to go about this.
Best regards
Alan Shouls
_______________________________________________
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