How can I ensure that the main child lives till all children finishes
their jobs and get killed?

Is there any way that I can invoke a function when a thread gets killed?

-- 
Posted via http://www.ruby-forum.com/.