PTHREAD_RESUME_NP(3) BSD Library Functions Manual PTHREAD_RESUME_NP(3)NAME
pthread_resume_np -- resume suspended thread
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread_np.h>
int
pthread_resume_np(pthread_t tid);
DESCRIPTION
The pthread_resume_np() function, called on a suspended thread, causes it to resume. If a thread specified by the tid argument is not sus-
pended, no actions will be performed.
RETURN VALUES
If successful, pthread_resume_np() function returns 0. Otherwise, an error number is returned to indicate the error.
ERRORS
The pthread_resume_np() function will fail if:
[EINVAL] The value specified by the tid argument is invalid.
[ESRC] No thread could be found corresponding to the thread ID specified by the tid argument.
SEE ALSO pthread_attr_setcreatesuspend_np(3), pthread_resume_all_np(3), pthread_suspend_all_np(3), pthread_suspend_np(3)AUTHORS
This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
BSD February 13, 2003 BSD
Check Out this Related Man Page
PTHREAD_ATTR_SETCREATESUSPEND_NP(3) BSD Library Functions Manual PTHREAD_ATTR_SETCREATESUSPEND_NP(3)NAME
pthread_attr_setcreatesuspend_np -- prepare attribute for creation of suspended thread
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread_np.h>
int
pthread_attr_setcreatesuspend_np(pthread_attr_t *attr);
DESCRIPTION
The pthread_attr_setcreatesuspend_np() instructs pthread_create(3) that the thread created with the attr attribute should be created and left
in a suspended state until explicitly resumed by the call to pthread_resume_np() or pthread_resume_all_np().
RETURN VALUES
The pthread_attr_setcreatesuspend_np() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
ERRORS
The pthread_attr_setcreatesuspend_np() function will fail if:
[EINVAL] The value specified by attr is invalid.
SEE ALSO pthread_attr_destroy(3), pthread_attr_init(3), pthread_create(3), pthread_resume_all_np(3), pthread_resume_np(3)AUTHORS
This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
BSD February 13, 2003 BSD
pthread_create(&tid, &Attr, A, NULL);
pthread_create(&tid, &Attr, B, NULL);
pthread_create(&tid, &Attr, C, NULL);
A,B,C are the name of the functiont that the thread excute
Hi all !
I want to ask so with these commands ,how the program will excute .
What the way it will do .
Please... (0 Replies)
Hi everyone,
I am new here in www.unix.com, i found this site because I am looking for an answer to this problem of mine.
I need to know a UNIX command to display an inode's thread id and process id.
Hope someone can help me on this.
Thanks :D (8 Replies)
To identify which java thread was hogging the cpu on linux I used to have to convert the lightweight thread id from a ps command (ps -eLo pid,ppid,tid,pcpu,comm | grep <PID>) to a hex value, take a thread dump and find the nid with the same hex value. I tried that recently on Enterprise Linux... (0 Replies)
I've been trying to set up the phantom protocol just to try it out. I compiled it fine, but when I ran it I got an error that the configuration file wouldn't load. I found that file didn't exist, so I created it with a blank file, but got this:
./phantom
Loading configuration file... (4 Replies)