synchronisation between two executable



i have two executable to run simultaneously(say a.out and b.out) i
cant make subroutine just for now. the plan is something like:
i. b.out runs first and generates some output.
ii. this output works as the input of a.out, and again creates input
for b.out.
and this goes on in a loop.

i have a idea of how much time b.out can take, and until now i make
a.out to sleep until b.out creats the file, which is worst way of
doing it.
can anybody suggest me a better idea to make it?
.



Relevant Pages

  • Re: synchronisation between two executable
    ... cant make subroutine just for now. ... the plan is something like: ... That contains some routines to do exactly that. ...
    (comp.lang.fortran)
  • Re: synchronisation between two executable
    ... i cant make subroutine just for now. ... the plan is something like: ... Look up Posix file locks: ...
    (comp.lang.fortran)
  • Re: McCabe complexity
    ... Consider this simple and standard functional block: ... the complexity, the logic for calling the subroutine will be the same ... "Tired minds don't plan well. ...
    (comp.soft-sys.matlab)
  • repeated calls to fftw
    ... This is related to repeated calls to small-size FFT using FFTW ... I have written a subroutine that only creates the ... But it would crash if I call it from another subroutine. ... I have to generate another plan to avoid the crash. ...
    (comp.lang.fortran)
  • Re: repeated calls to fftw
    ... > This is related to repeated calls to small-size FFT using FFTW ... I have written a subroutine that only creates the ... > I have to generate another plan to avoid the crash. ...
    (comp.lang.fortran)