Connecting Tech Pros Worldwide Help | Site Map

Number of threads linux supports

Member
 
Join Date: Mar 2007
Posts: 38
#1: Sep 10 '08
Hi,
I have to develop a server which will be running on a server class machine.To handle the clients i will be using threads.Can i know what is the maximum number of threads that can be created in linux.
Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#2: Sep 10 '08

re: Number of threads linux supports


How many threads your system can cope with is kernel dependant. Luckily, there are ways of testing that, which (oh what surprise) you can find by searching via google. For example, I just searched for linux maximum threads and it came up with this page which has a testing program written in C and (quite possibly out of date) instructions on how to increase that number. If you want to do so, I'd just search on google (or any other search engine of your choice) and try to find something. It's normally a quick and effective method.

Greetings,
Nepomuk
Reply