1834144 Members
2091 Online
110064 Solutions
New Discussion

Re: multithread process

 
jpcast_real
Regular Advisor

multithread process

Helo gurus,

I need your help . In my hp-ux 11i I have several processes which has more than 400 threads . Each thread is responsible to maintain a remote communication with an external device via TCP/IP . I really have serious doubts that a multithreaded sollution works correctly in this environment . What happens if one of the network connection is hung? Does is affect to the to the rest of the threads? .

Another important point is to know why the whole process gets hung when it has more than 400 threads configured. I have revised the kernel values and I do not find any of them exceeded . Can you tell me any idea about this? .

Thanks
Here rests one who was not what he wanted and didn't want what he was
1 REPLY 1
Florian Heigl (new acc)
Honored Contributor

Re: multithread process

A hanging thread should not influence any of the others, unless they share some of their path, i.e. the controlling thread doesn't handle it properly and continues to poll a problem thread.

kernel issues could occur i.e. with the files per process or user limits. If You use unix sockets or named pipes, You'll have to count them too.

addiotionally take care to have good cleanup routines so that You don't end up with Your application port in FIN_WAIT_2 state. I at least know one company that never got that one solved.
:))
yesterday I stood at the edge. Today I'm one step ahead.