I'm currently writing a bash script, that starts multiple threads:
#wait for all sub-processes (thread) to finish
Now I want to know, what happens, if a sub-process (thread) is finished,
before the main-script gets to the wait parameter.
Will the wait parameter realize, that the thread has already finished or will it wait to infinity?
when wait() is called by process it blocks calling process until child is done. What happens if calling process have multiple children.
What does wait(NULL) function do. Waits until all children are done? (1 Reply)
I need some help to create a script. This script have to create a file once all the process inside are finish.
Here how I want to do : #!/bin/ksh
... (4 Replies)
i'm reading Andrew S.Tanenbaum's book --- Modern Operating System.At the part of discussing race condition.And the author gives a solution with using the TSL instruction,say that one process must call the enter_region function before entering the critical regions and call the leave_region... (0 Replies)
I've been experimenting with pseudo-terminals and found something I don't quite understand. Writing an EOF character to the master end doesn't work quite as I expect. Once I've written any other data, the master pty seems to treat a single ^D as a seperator, i.e. writing "abcabc" would let cat do... (1 Reply)