One example of what I'm trying to do is develop a record lock manager (for the 
lack of a better description) for non-persistent connections.  I need the lock 
manager to wakeup when there is a request for a readu/write/delete.  The all 
the "responders" would need to send requests to the "lock manager".  We have 
other processes that could use this functionality as well.

I hope that helps,
Tom

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of [email protected]
Sent: Thursday, February 26, 2009 4:09 PM
To: [email protected]
Subject: Re: [U2] Inter-Process Control...

Hey Tom,



Are you trying to do something like...



Program A

B B B B  DONE = 0

B B B B  LOOP

B B B B B B B B B B  GOSUB XXXX;* PROCESS STUFF

B B B B B  UNTIL DONE DO

B B B B B B B B B B B  IF SOME.EVENT THEN

B B B B B B B B B B B B B B B B  LOCK 10;* WAKE UP PROGRAM B

B B B B B B B B B B B B END

B B B B B B B B B B B  LOCK 11 THEN

B B B B B B B B B B B B B B B B B B B B UNLOCK 11

B B B B B B B B B B B B END ELSE

B B B B B B B B B B B B B B B B B B  UNLOCK 10;* PROGRAM B FINISHED

B B B B B B B B B B B  END

B B B B B B B B B B B B SLEEP 30

B B B B B B  REPEAT

B B B B B B B STOP



PROGRAM B

B B B B B B B DONE = 0

B B B B B B  LOOP

B B B B B B B B B B B B B  LOCK 10 THEN

B B B B B B B B B B B B B B B B B B B B  UNLOCK 10

B B B B B B B B B B B B B B ENDB ELSE

B B B B B B B B B B B B B B B B B B B B  LOCK 11

B B B B B B B B B B B B B B B B B B B B  GOSUB XXXX;* PROCESS STUFF

B B B B B B B B B B B B B B B B B B B B B  UNLOCK 11

B B B B B B B B B B B B B B  END

B B B B B B B  UNTIL DONE DO

B B B B B B B B B B B B B B  SLEEP 30

B B B B B B B  REPEAT

B B B B B B B B STOP




----- Original Message -----
From: "Tom Whitmore" <[email protected]>
To: [email protected]
Sent: Thursday, February 26, 2009 12:05:19 PM GMT -06:00 US/Canada Central
Subject: RE: [U2] Inter-Process Control...

Thank you for all the responses.

I should have stated that we are a UniVerse shop.

I did play with the lock/unlock but the only process that can modify the lock
is the one that set it. B Also, I could not get the process to wait on the
lock. B From the playing I did, lock/unlock seems very limited compared to
what was available 15 years ago.

Thanks
Tom
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to