M
masterwally
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!
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!