pthread_create() spawns 2 threads upon first call (what is the first thread?)
Hello All,
I have an application running in an embedded Linux system that calls pthread_create() multiple times to create multiple threads. For some reason, the first time I call pthread_create(), I see two pid's added when I execute the "ps" command at the Linux console. The second thread is the one that I actually intended to spawn. I don't know what the first thread is doing and what it is for.
Why is this happening? How can I prevent the extraneous thread from being created? How do I find out information on what this thread is for?
Best Regards,
Jerry
|