We are using Unix semaphores under Universe 10.0, with GCI C code that
was ported from Pr1me by a third party.
If you are interested in having a look at this I'll check with the
powers-that-be.
David Norman
Senior Software Engineer - SA Ambulance Service
ICT Services
SA
Does Universe support the WAKE / PAUSE commands? We are a Unidata shop
and use these commands to do something very similar to the problem you
are trying tackle.
Syntax
WAKE pid
Description
The UniBasic WAKE command activates a UniData process (pid) that has
been
paused with
...@listserver.u2ug.org [mailto:owner-u2-
us...@listserver.u2ug.org] On Behalf Of Larry Hiscock
Sent: Thursday, February 26, 2009 4:47 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Inter-Process Control...
Yep ... sure miss sem$wait sem$notify. You could accomplish the same
thing
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
Sent: 26 February 2009 12:57
To: u2-users@listserver.u2ug.org
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
Tom,
Sounds like a classic application for sockets. Inter process communications.
Phantom 1 opens a server socket on a known port/IP and waits on a
blocked read for something (like a process name to run for example).
Process 2 opens a socket on the known port/ip and writes the name of the
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
@listserver.u2ug.org
Subject: RE: [U2] Inter-Process Control...
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: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2
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. Also, I could not get the process to wait on the lock.
From the playing I did, lock/unlock seems very
Tom, can you elaborate when you say the only process that can modify the
lock is the one that set it. Isn't that exactly how a semaphore is
supposed to work? Both processes should be able to set the lock but only
one can have it at any moment in time. Or am I missing the point?
---
u2-users
] On Behalf Of Kevin King
Sent: Thursday, February 26, 2009 2:01 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Inter-Process Control...
Tom, can you elaborate when you say the only process that can modify the
lock is the one that set it. Isn't that exactly how a semaphore is
supposed
@listserver.u2ug.org
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
-Original Message-
From: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Tom Whitmore
Sent: Thursday, February 26, 2009 12:25 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Inter-Process Control...
I agree. I wrote two little programs.
LOCK.TEST1
@listserver.u2ug.org
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 ;* 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
Sent: Friday, 27 February 2009 8:47 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Inter-Process Control...
Yep ... sure miss sem$wait sem$notify. You could accomplish the same
thing with a simple socket-based protocol. The main process could listen on
a socket and wait for any of the sub
Subject: RE: [U2] Inter-Process Control...
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
.
Tom
-Original Message-
From: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of HENDERSON MIKE, MR
Sent: Thursday, February 26, 2009 6:06 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Inter-Process Control... {Unclassified}
Tom,
I don't
17 matches
Mail list logo