Thread count

I’m writing a basic socket server in Ruby. I’ve made it use threads to
handle multiple simultaneous connections. What’s the simpliest way to
count the number of current threads? Python has a threading.activeCount
method that does this.


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