P. 1
MultithreadedProgrammingGuide_Solaris24

MultithreadedProgrammingGuide_Solaris24

|Views: 84|Likes:

More info:

Published by: Spiros Fraganastasis on Jul 10, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/10/2011

pdf

text

original

thr_suspend(3T)

thr_suspend() suspends thread execution.

thr_suspend() immediately suspends the execution of the thread specified by
target_thread. On successful return fromthr_suspend(), the suspended
thread is no longer executing. Once a thread is suspended, subsequent calls to
thr_suspend() have no effect.

Return Values —thr_suspend() returns zero after completing successfully.
Any other returned value indicates that an error occurred. When the following
condition occurs,thr_suspend() fails and returns the corresponding value.

ESRCHtarget_thread cannot be found in the current process.

thr_continue(3T)

thr_continue() resumes the execution of a suspended thread. Once a
suspended thread is continued, subsequent calls tothr_continue() have no
effect.

A suspended thread will not be awakened by a signal. The signal stays
pending until the execution of the thread is resumed bythr_continue().

Return Values —thr_continue() returns zero after completing successfully.
Any other returned value indicates that an error occurred. When the following
condition occurs,thr_continue() fails and returns the corresponding value.

ESRCHtarget_thread cannot be found in the current process.

#include

int thr_suspend(thread_ttarget_thread);

#include

int thr_continue(thread_ttarget_thread);

16

Multithreaded Programming Guide—August 1994

2

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->