wait i -- wait for the completion of child process with process id
i.
wait f -- wait for the input file to have some input ready.
wait s -- wait for at least one of the files in the list
s of input files to be ready, and return the list of positions
corresponding to ready files.