3 ms·
The article example waits for all the fibers to complete as well. I'm not sure about Ruby's specific implementation, but the threads need not wait around. When
by Rapzid 6y ago
The article example waits for all the fibers to complete as well.
I'm not sure about Ruby's specific implementation, but the threads need not wait around. When the thread entry returns pthread_exit is called. I believe the OS thread would go away regardless of how you are waiting on them.