[Backgroundrb-devel] Question about killing threads
Ben Johnson
bjohnson at contuitive.com
Sat Jul 8 16:46:11 EDT 2006
If I do the following:
threads = []
threads[0] << Thread.new do
while true
# some code
end
end
# Will this kill off the first thread?
threads[0] << Thread.new do
while true
# some more code
end
end
Will the second assignment kill off the first thread? Or will that
first thread keep going and never stop unless i explicitly kill it
using the Thread.kill method?
Thanks for your help.
Thank You,
Ben Johnson
E: bjohnson at contuitive.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060708/4a79d792/attachment.html
More information about the Backgroundrb-devel
mailing list