Hi Bart, Thanks for your reply.
I am using Linux kernel 2.6.10, and my threading library is NPTL 2.3.3. Is the strange condition is normal for my scenario? Additionally, I don't know what you mean by "the so-called manager thread". Could you explain more clearly what the so-called manager thread mean? Thanks, 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:[email protected] ----- Original Message ----- From: "Bart Van Assche" <[email protected]> To: "Tewen Hsieh" <[email protected]> Cc: <[email protected]> Sent: Monday, May 11, 2009 2:30 PM Subject: Re: create thread in a reloadable module for receiving fifo messages > 2009/5/11 Tewen Hsieh <[email protected]>: >> But there is still a question in my scenario. >> That is I still can see "three" snmpd processes when I use "ps" command >> to >> get process status. >> This is so amazing that I am sure that I just create one thread. >> There should be only two snmpd processes when I use "ps" command to >> check. >> Why are there *three* snmpd processes? (I am pretty sure that I just >> create >> one thread.) >> Could anyone explain this strange condition? > > You didn't tell us which operating system and which threading library > you are using. Are you using a Linux 2.4.x kernel with LinuxThreads ? > In that case the behavior you see is normal -- the first > pthread_create() call not only creates the requested application > thread but also the so-called manager thread. And each thread created > by LinuxThreads is visible as a separate process. > > You can check which threading library has been installed on your > system via the getconf command. An example: > $ uname -r > 2.6.27.12-170.2.5.fc10.x86_64 > $ /usr/bin/getconf GNU_LIBPTHREAD_VERSION > NPTL 2.9 > > Bart. ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
