How to synchronize apps running?
- From: masterwally@xxxxxxxxx
- Date: Thu, 18 Oct 2007 07:47:24 -0700
Hello,
I have a following issue: I have a application, that binds the two
other programs together in a way, that it runs them one after the
other. The issue is, that the first one is an application that opens a
number of sockets and waits for the incoming connections. The second
application connects to those sockets, transmits something and closes.
The thing is, that the first application is a Java app, while the
second one is native. 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? I must only say, that "sleep" is insufficient, as
I need to make it as fast as possible, so waiting for, let's say, 5
seconds and then commencing execution of the native application is out
of the question. Any ideas? Thanks in advance!
.
- Follow-Ups:
- Re: How to synchronize apps running?
- From: Laurent D.A.M. MENTEN
- Re: How to synchronize apps running?
- From: Gordon Beaton
- Re: How to synchronize apps running?
- Prev by Date: Re: notifying particular thread to wake up.
- Next by Date: Re: Great SWT Program
- Previous by thread: Cisco and telnet
- Next by thread: Re: How to synchronize apps running?
- Index(es):
Relevant Pages
|