Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pthread_resume_np(3) [freebsd man page]

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
Man Page

8 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

what a bunch of idiots...

http://slashdot.org/article.pl?sid=04/01/15/2349201&mode=thread&tid=126&tid=155&tid=95&tid=99 (1 Reply)
Discussion started by: norsk hedensk
1 Replies

2. News, Links, Events and Announcements

Mozilla fire...uh whatever

http://slashdot.org/article.pl?sid=04/03/27/0250250&mode=thread&tid=126&tid=154&tid=95 (0 Replies)
Discussion started by: norsk hedensk
0 Replies

3. News, Links, Events and Announcements

hey! i took that!.....

http://developers.slashdot.org/article.pl?sid=04/05/05/2140200&mode=thread&tid=108&tid=126&tid=146&tid=156&tid=99 (0 Replies)
Discussion started by: norsk hedensk
0 Replies

4. Programming

About thread programming !

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)
Discussion started by: iwbasts
0 Replies

5. UNIX for Dummies Questions & Answers

UNIX command to get inode's tid and pid

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)
Discussion started by: rodkun
8 Replies

6. Programming

Thread parameter in ANSI C makes a segmentation fault

The creation of thread. void Client_Constructor ( const char* IPAddr ) { pthread_t tid; pthread_attr_t rx; /* Create separate memory for client argument */ struct ThreadArgs *threadArgs; if ( ( threadArgs = ( struct ThreadArgs* ) malloc( sizeof( struct ThreadArgs )... (14 Replies)
Discussion started by: sehang
14 Replies

7. Linux

nid missing from stacktrace and tid is decimal

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)
Discussion started by: charriso
0 Replies

8. UNIX for Dummies Questions & Answers

Phantom Protocol Configuration File

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)
Discussion started by: Azrael
4 Replies