From: Shashank Date Date: 2002-08-20T12:49:31+09:00 Subject: Re: thread control It is my understanding that fork/wait2 is not supported on Windows (mswin32). "Jim Freeze" wrote in message news:20020819223909.A12645@freebsdportal.com... > On Tue, Aug 20, 2002 at 11:29:23AM +0900, Shashank Date wrote: > > I am trying to write a ruby script (Ruby 1.7.2 mswin32) which does the > > following: > > 1. Spawn a few threads (say 3, for the time being) each of which invokes an > > external program using the backquotes. > > 2. Let the main thread continue till either all the threads are done > > executing OR some external event occurs (like deletion of a file by another > > program). > > > > I cannot seem to make it work (may be because thread implementation in Ruby > > is not "native" ?). > > Please help. TIA, > > -- Shanko > > > You may not need threads. > Have you tried using fork, wait2 and redirect? > > I am refactoring some code right now that does this. > I'll post it after I clean it up a little if you > want to see it. > > Jim > > > -- > Jim Freeze > If only I had something clever to say for my comment... > ~ >