As per thread documentations; when a Ruby program terminates, all running threads are killed, regardless of their states. Why does not ruby waits for all spawned threads to terminate first?
Asked
Active
Viewed 113 times
0
-
Because you didn't tell it to using `join`? Show us the minimum code that demonstrates the problem and we'll help pinpoint the exact problem. Without that your question is broad and we can only give broad answers. – the Tin Man Aug 26 '16 at 15:55
-
If I compare with Java; where JVM does not get killed after main method is completed; provided running thread are present in memory. So, what might have been reasons to select such a model? – Vijay Shanker Dubey Aug 26 '16 at 16:09
-
1Why Matz and the architects chose that would best be asked in the Ruby-Talk list where they can explain. – the Tin Man Aug 26 '16 at 18:44