# Thread count

**URL:** <https://www.ruby-forum.com/t/thread-count/94153>\
**Category:** Ruby\
**Created:** [April 23, 2006, 4:54am UTC](https://www.ruby-forum.com/t/thread-count/94153 "2006-04-23T04:54:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/59ef9b/32.png) [@brad](https://www.ruby-forum.com/u/brad)\
**Post date:** [April 23, 2006, 4:54am UTC](https://www.ruby-forum.com/t/thread-count/94153/1 "2006-04-23T04:54:13Z")

</div>

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.

Thanks,  
Brad
