Re: How to synchronize apps running?
- From: masterwally@xxxxxxxxx
- Date: Thu, 18 Oct 2007 08:56:12 -0700
On 18 Pa , 17:33, Gordon Beaton <n....@xxxxxxxxx> wrote:
On Thu, 18 Oct 2007 07:47:24 -0700, masterwa...@xxxxxxxxx wrote:
And, before the first application is able to start and open sockets,
the second one runs, tries to connect, fails and exits. I don't have
any influence on that, I can only modify sources of the first
application and the "master" one. Do you have some ideas on a nice
way how master application can delay execution of the second
program?
Your "master" application can start app1, then make several attempts
to connect to the socket. When that succeeds, it can close the
connection and start app2, which should then also succeed. This
assumes that app1 correctly deals with closed connections and multiple
clients.
/gordon
--
One thing I forgot to mention: the first app waits for only one
connection, and - after the socket closes - terminates itself. So your
solution would close my app1 after "master" tries succeeds...
.
- Follow-Ups:
- Re: How to synchronize apps running?
- From: Gordon Beaton
- Re: How to synchronize apps running?
- From: Gordon Beaton
- Re: How to synchronize apps running?
- References:
- How to synchronize apps running?
- From: masterwally
- Re: How to synchronize apps running?
- From: Gordon Beaton
- How to synchronize apps running?
- Prev by Date: Re: How to synchronize apps running?
- Next by Date: Re: How to synchronize apps running?
- Previous by thread: Re: How to synchronize apps running?
- Next by thread: Re: How to synchronize apps running?
- Index(es):
Relevant Pages
|