title: Determine which threaded process running in the background finished last on AIX
body: <p>If I have a parent process which forks to 5 child processes in the background and a wait, ie.</p>
  
  <p><code>job1.sh&amp;
   job2.sh&amp;
   job3.sh&amp;
   job4.sh&amp;
   job5.sh&amp;
   wait</code></p>
  
  <p>Would it be possible to find out which of the jobs I have ran finished last? I want this to be fully automated by a script. Log files would give me the answer but a requirement is that it should be automated.</p>
  
  <p>I am currently working on AIX. I am thinking that it may be possible to use signals to do this but I haven't had enough exposure to know if this is valid.</p>
  
  <p>Any help is greatly appreciated!</p>
  
  <p>Many thanks and happy coding</p>