I don't think you can list threads by ps -ef. As far as I know it only lists processes. Threads and processes are different.
If ps -ef shows two processes there are actually two processes, not the threads created by the mentioned snippet
PS: See man ps for thread listing options
In reply to Re: assigning a name to every threads
by samarzone
in thread assigning a name to every threads
by ajeet@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |