ajeet@perl has asked for the wisdom of the Perl Monks concerning the following question:
I am having a problem related to thread.
I am creating any thread by following code
my $thr=threads->create(&funName);
Now when i use "ps -ef | grep" to list my process, I see two processes running with same file name. If say the name of my file is createThread.pl then I see two threads with name createThread.
What I want is that Chnage the name of threads which are created by main process of my file, say if I assign name "createThreadChild" to child thread then after executing the "ps -ef | grep " command, I should see one process with name "createThread" and another process (which is actually the child of createThread) with name "createThreadChild"...
Thanks in Advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: assigning a name to every threads
by moritz (Cardinal) on Apr 29, 2010 at 08:14 UTC | |
by ajeet@perl (Acolyte) on Apr 29, 2010 at 08:25 UTC | |
|
Re: assigning a name to every threads
by samarzone (Pilgrim) on Apr 29, 2010 at 09:41 UTC | |
by ajeet@perl (Acolyte) on Apr 29, 2010 at 10:30 UTC | |
by almut (Canon) on Apr 29, 2010 at 14:22 UTC | |
by ajeet@perl (Acolyte) on Apr 30, 2010 at 06:26 UTC | |
by ajeet@perl (Acolyte) on Apr 30, 2010 at 12:21 UTC | |
by almut (Canon) on Apr 30, 2010 at 13:52 UTC | |
| |
|
Re: assigning a name to every threads
by llancet (Friar) on Apr 29, 2010 at 11:23 UTC | |
by ajeet@perl (Acolyte) on Apr 29, 2010 at 11:40 UTC |