# Os level thread in a Ruby extension module

**URL:** <https://www.ruby-forum.com/t/os-level-thread-in-a-ruby-extension-module/58606>\
**Category:** Ruby\
**Created:** [April 23, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/os-level-thread-in-a-ruby-extension-module/58606 "2006-04-23T23:48:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![goldfita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@goldfita](https://www.ruby-forum.com/u/goldfita)\
**Post date:** [April 23, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/os-level-thread-in-a-ruby-extension-module/58606/1 "2006-04-23T23:48:56Z")

</div>

I need to handle sockets in C which will be wrapped in a Ruby extension  
module. At this point, I’m not sure how it will work, but I think I’m  
going to need to put the socket code in a thread. Is this going to  
cause a problem when I build a Ruby module around it? (Assume this will  
be pthreads in Linux.) Is there any reason the interpreter might not  
like me using threads in the extension module? Thanks.
