Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pthread_multi_np(3) [freebsd man page]

PTHREAD_MULTI_NP(3)					   BSD Library Functions Manual 				       PTHREAD_MULTI_NP(3)

NAME
pthread_multi_np, pthread_single_np -- switch between multi- and single-threaded scheduling modes LIBRARY
POSIX Threads Library (libpthread, -lpthread) SYNOPSIS
#include <pthread_np.h> int pthread_multi_np(void); int pthread_single_np(void); DESCRIPTION
The pthread_single_np() function switches the process to a single-threaded mode, i.e., suspends all threads except the current. The seman- tics of this function is similar to pthread_suspend_all_np(3). The pthread_multi_np() function switches the process to a multi-threaded mode. The semantics of this function is similar to pthread_resume_all_np(3). RETURN VALUES
The pthread_multi_np() and pthread_single_np functions always return 0. SEE ALSO
pthread_resume_all_np(3), pthread_suspend_all_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

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script for multi-threaded bash processes

hey everyone, I'm having some trouble breaking down some code. It's simple a control script that takes machines meant to be backed up from a list. Then according to that will run multi-threaded processes up until the specified thread limit. for example if there are 4 machines to be backed up,... (2 Replies)
Discussion started by: terrell
2 Replies

2. UNIX for Advanced & Expert Users

Which process has created a file ?

Hi All, We have a multi-threaded application. During the course of action, each process creates some files. Is there any way to know which process has created a particular file ? Ex: Suppose we have 3 process running A, B and C in the application and some files FILE1 FILE2 FILE3 and... (4 Replies)
Discussion started by: 14341
4 Replies