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
