ruby max threads

R

Robert Klemme

What is ruby maximum concurent threads count?

It depends. Try it out:

ruby -e 'i=0;loop do; Thread.new { sleep 1 while 1 }; print i+=1, "\r"; end'

robert
 
R

Robert Klemme

heathweaver said:
I quit after 500, anyone know how hi this goes?

My point was that there is no common hard limit on the number of
threads. Instead limits of the OS, architecture, etc. apply. It varies
from machine to machine and may even vary from system load to system load.

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top