DO Message queueing issues
DO Message queueing issues
- Subject: DO Message queueing issues
- From: Art Jacobson <email@hidden>
- Date: Mon, 24 Jul 2006 12:52:45 -0400
I am writing an application the relies heavily on distributed objects
for communication between processes. The messaging tends to occur in
bursts, and the message ordering is critical. When each of these
messages are received, the receiver must perform a blocking operation
(in my implementation this is carried out by a persistent worker
thread so the receiving thread never blocks). The sending process
must not block during this operation. When the incoming messages are
received faster than they can be processed they are queued by some
mechanism internal to Cocoa. My problem is that when these messages
are dequeued, they are in the reverse order than when they are received.
The DO message queuing is behaving like a FILO queue, not a FIFO as
expected. Is there any way to change this behavior, or another way
to do this with distributed objects?
I was able to reproduce this problem using socket ports and mach
ports, also with different methods of blocking, busy waiting, and
waiting in a run loop. I have written two sample apps using
NSConnection over Mach ports to illustrate the problem I'm having.
Art Jacobson
email@hidden
Attachment:
connectionServer.m
Description: Binary data
Attachment:
connectionClient.m
Description: Binary data
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden