Re: How to synchronize apps running?



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...

.



Relevant Pages

  • Re: How to synchronize apps running?
    ... connection, and - after the socket closes - terminates itself. ... You said you could modify app1 and the master app. ...
    (comp.lang.java.programmer)
  • Re: Big knowledge gap wrt TCP/IP
    ... forward whatever I recieve - the connection ... >From the POV of the power-line communication mechanism, ... We have a master machine in the background, ... Now, although slave1 needs to talk to slave2, there is no way to ...
    (comp.lang.tcl)
  • Re: Devicenet Command again
    ... >> master command format inorder to invoke this assembly object.will ... > via one of the Predefined Master/Slave Connection set ... > The CAN connection IDs of the PMSCS connections are predefined ...
    (comp.arch.embedded)
  • Re: Various network problems
    ... PingPlotter shows the Gateway loses 30% of packets when pinging dell. ... Ethernet adapter Loopback Connection for Xdrive: ... Status for domain DCOOL on transport ... Master browser name is:? ...
    (microsoft.public.windowsxp.network_web)
  • Re: Indicating Stored Procedure progress on Form
    ... You may also have to take a look at the state property of the recordset ... using a second connection should have worked. ... Sylvain Lafontaine, ing. ... Is this going in the master stored procedure calling the individual ...
    (microsoft.public.access.adp.sqlserver)