Ari Brown
9/30/2007 6:02:00 PM
On Sep 30, 2007, at 12:10 PM, Kero wrote:
>>> Those familiar with threading in Java will know that you can write a
>>> class that is a subclass of Thread, and then put the thread's
>>> code into
>>> 'public static void run,' which gets executed once thread.start is
>>> called. Can something similar to this be done in Ruby?
>
> The usual question is, why would you want that?
> A Thread, by its nature, is something that should be running.
> Especially delaying the start means... there's no underlying thread
> yet!
>
> And I really love the syntax of Ruby:
> Thread.new {
> // thread's code
> }
Quick thread question:
Does a thread need to be started with x.join, or will it start
automatically?
Ari
--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.