Re: How to synchronize apps running?
- From: Gordon Beaton <n.o.t@xxxxxxxxx>
- Date: 18 Oct 2007 15:33:51 GMT
On Thu, 18 Oct 2007 07:47:24 -0700, masterwally@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
--
.
- Follow-Ups:
- Re: How to synchronize apps running?
- From: masterwally
- Re: How to synchronize apps running?
- References:
- How to synchronize apps running?
- From: masterwally
- How to synchronize apps running?
- Prev by Date: Saving a serialized object into a derby database
- Next by Date: Re: How to synchronize apps running?
- Previous by thread: How to synchronize apps running?
- Next by thread: Re: How to synchronize apps running?
- Index(es):