Re: Threads



This does not work as I thought it would, that is it would spin off a
bunch of threads and every two seconds I would get a thread print the
simple line to the terminal.

So, what am I missing?

Try adding a Thread.abort_on_exception = true to the top.
Also note that if the "main" thread ever terminates then it kills all
other threads and ends the program
Cheers.
-=R
--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: remote desktop sessions not terminating?
    ... MS support told me the delay in userinit terminating is caused by 2003 SP1, ... the policy is missing b/c something went wrong with the SP1 install and we ... >>> noticed that after a few minutes userinit.exe terminates. ...
    (microsoft.public.windows.terminal_services)
  • Re: Try Finally...
    ... >carrying on. ... I think I am missing your point completely. ... Finally NEVER terminates the program, and it is ALWAYS possible to carry ...
    (comp.lang.pascal.delphi.misc)
  • Re: "continue/next" for "loop"
    ... Stefan Lucks wrote: ... > as far as I can see, your program fragment never terminates: ... > missing something? ...
    (comp.lang.ada)
  • Re: Try Finally...
    ... >>carrying on. ... >I think I am missing your point completely. ... >Finally NEVER terminates the program, and it is ALWAYS possible to carry ...
    (comp.lang.pascal.delphi.misc)