Re: How to name the pthread or Renaming?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, forgot the ML as CC. I put the ML back on the CC.

On Mon, Mar 10, 2008 at 3:49 PM, ziaudeen <Ziaudeen.Abdulrazak@xxxxxxx> wrote:
>
>  Hi Bert,
>
>  It is the name which I set using the prctl function prctl(PR_SET_NAME,<null
> terminated string.,0,0,0).  It is successfully setting the name for the
> thread. But I don't know how to see the changed thread name using the
> command
>   like ps -eLf or ps H.
as the named suggest, prctl(2) is to control a process's attributes.
The name is a attribute to the whole process, and can not be set
individual per thread.

>
>  Do you suggest something for me to try to see the changed name of each
> thread?
No, because I think you can not set the name for each thread, at most
for the process.

Anyway, I'm a little confused, in your first mail, you asked how to
set the name for a thread created with pthread_create(3), and now you
ask how you can see the changed name of a thread!

Bert

>
>  Regards
>  Ziaudeen
>
>
>
>
>  Bert Wesarg wrote:
>  Hi,
>
> On Mon, Mar 10, 2008 at 11:50 AM, ziaudeen <Ziaudeen.Abdulrazak@xxxxxxx>
> wrote:
>
>
>  Hi,
>
>  While creating a pthread using the pthread_create function, Is there any
>  ways to change/give the name of the thread to our custom names?
>
>  About what name do you talking, the name of the binary, which is shown
> in ps/top/...?
>
> If its some internal name, posix threads have no such thing.
>
> Bert
>
>
>
>  Please help me, I am a new bee to linux programming
>
>  Regards
>  Ziaudeen
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux