03-19-2018
Change title of a thread after it is created
hi,
how do we change the title of a thread after it is created?
Thanks
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello.
I am trying to figure out how to change the title of my console window. I don't need it to dynamically change with my current directory. I just want to be able to change the name of it, so when I minimize the window I can see which windows are for what purpose.
I've tried using the... (8 Replies)
Discussion started by: medmonson
8 Replies
2. Solaris
Is it possible to change the title of a Terminal window on Solaris? For example, for a MS Windows command window, one can simply type "title NameofWindow" to change the title for a command window.
I was looking for similar functionality for terminal windows.
Thanks. (8 Replies)
Discussion started by: here2learn
8 Replies
3. UNIX for Advanced & Expert Users
Is it possible to change the putty window title from a Unix command line? (12 Replies)
Discussion started by: akbar
12 Replies
4. AIX
Once I type "mail" command, I got to see the mail like below:
> 1 daemon Thu Aug 12 17:31 31/938 "Output from cron job "
My question is, how to do change the default title "Output from cron job " to be more customized title?
Thanks. (4 Replies)
Discussion started by: ngaisteve1
4 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
I have a not so unix question for you guys(or maybe it is). I use PUTTY to login to serverA (my putty title shows as serverA.domainname.com)
Now from ServerA i do ssh user@ServerB (i have ssh public private key setup)...
now my question is when i do ssh and logon to... (20 Replies)
Discussion started by: abdul.irfan2
20 Replies
LEARN ABOUT REDHAT
pthread_create
PTHREAD_CREATE(3) Library Functions Manual PTHREAD_CREATE(3)
NAME
pthread_create - create a new thread
SYNOPSIS
#include <pthread.h>
int pthread_create(pthread_t * thread, pthread_attr_t * attr, void * (*start_routine)(void *), void * arg);
DESCRIPTION
pthread_create creates a new thread of control that executes concurrently with the calling thread. The new thread applies the function
start_routine passing it arg as first argument. The new thread terminates either explicitly, by calling pthread_exit(3), or implicitly, by
returning from the start_routine function. The latter case is equivalent to calling pthread_exit(3) with the result returned by start_rou-
tine as exit code.
The attr argument specifies thread attributes to be applied to the new thread. See pthread_attr_init(3) for a complete list of thread
attributes. The attr argument can also be NULL, in which case default attributes are used: the created thread is joinable (not detached)
and has default (non real-time) scheduling policy.
RETURN VALUE
On success, the identifier of the newly created thread is stored in the location pointed by the thread argument, and a 0 is returned. On
error, a non-zero error code is returned.
ERRORS
EAGAIN not enough system resources to create a process for the new thread.
EAGAIN more than PTHREAD_THREADS_MAX threads are already active.
AUTHOR
Xavier Leroy <Xavier.Leroy@inria.fr>
SEE ALSO
pthread_exit(3), pthread_join(3), pthread_detach(3), pthread_attr_init(3).
LinuxThreads PTHREAD_CREATE(3)