Creating threads question

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 J.
E: [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs