Board index » kylix » Some questions about threads and sockets.
Stig Johansen
![]() kylix Developer |
Some questions about threads and sockets.2005-04-16 01:13:06 PM kylix1 Hi all. I am working on various services, all involving threads and sockets. My first question is about NPTL threads. I've been googling around, and it seems that it is /creation/ and /destroying/ threads, that are improved. Is that correct? Since i use thread pooling, it (allmost) doesn't matter about the speed of creation/destroying threads. For now, i have tested my application on Kernel 2.6.8 - glibc 2.3.4, and i works. Given the Kylix situation, does anybody have a clue on how long the 'old' thread model will be maintained/supported in glibc? For now, i use 1:1 model with threads and sockets. It works, and works fast, so maybe it's ok. But i would like to know if there is some statistics/experience about the optimal number of sockets/thread. Does anybody have input on this? -- Best regards Stig Johansen |