Couldn't you get the second phantom to lock an empty record & release it
when it is done? The first phantom can wait on the readu lock.

Regards,
Kishor Parmar


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tom Whitmore
Sent: 26 February 2009 12:57
To: [email protected]
Subject: [U2] Inter-Process Control...

We have two phantom processes.  The first phantom needs to wait for an event
to occur with the second phantom.  I realize that I could have the first
phantom loop, check, then sleep.  However, I'd like to avoid wasting
resources.  Back on the Prime, I could use semaphores, to control this flow
and this was clean, and simple.  Has anyone come across a means of having a
phantom wait on "something", so it only wakes up when it needs to perform
its
function?

To try to explain better:

Phantom1:
Loop
  Wait on semaphore
  Perform a shared process  (batch updates would be an example)
Repeat


Phantom2 (3, 4, ...):
Loop
  Process records
  Notify semaphore
Repeat

Thanks,
Tom Whitmore
RATEX Business Solutions
-------
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