Sponsored Content
Top Forums Programming How to cancel a thread safely from the initial thread? Post 70471 by alan.zhao on Friday 29th of April 2005 03:44:01 AM
Old 04-29-2005
How to cancel a thread safely from the initial thread?

how about asynchronous canceling?
or with signal?
if with signal whether it effects the process?
my english so badly Smilie Smilie
 

3 More Discussions You Might Find Interesting

1. Programming

Parent Thread Of Child Thread

Parent Thread Of Child Thread Suppose a process creates some threads say threadC and threadD. Later on each of these threads create new child threads say threadC1, threadC2, threadC3 etc. So a tree of threads will get created. Is there any way to find out the parent thread of one such... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

2. UNIX for Dummies Questions & Answers

Difference between handle to the thread HANDLE and thread identifier pthread_t

This question might be silly but its confusing me a bit: What is the difference between handle to the thread HANDLE and thread identifier pthread_t? ---------- Post updated at 01:52 PM ---------- Previous update was at 01:48 PM ---------- Sorry I saw details and HANDLE is in windows and... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Not able to post thread/reply to thread

Dear Moderator I am not able to post any new thread or post reply to mine old thread. Kindly help as i am stuck on one problem and needed suggestion. Regards Jaydeep (1 Reply)
Discussion started by: jaydeep_sadaria
1 Replies
pthread_kill(3T)														  pthread_kill(3T)

NAME
pthread_kill() - send a signal to a thread SYNOPSIS
PARAMETERS
thread Thread to which the signal is to be delivered. sig Signal to be delivered to thread. DESCRIPTION
The function is used to request that a signal be delivered to thread. The signal is asynchronously directed to thread in the calling process. The signal is handled in the context of the given thread; if the signal action results in the thread terminating or stopping, this action is applied to the whole process. If sig is zero, error checking is performed but a signal is not sent. RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set). ERRORS
If any of the following occur, the function returns the corresponding error number: [EINVAL] sig is an invalid or unsupported signal number. [ESRCH] No thread could be found corresponding to thread. AUTHOR
was derived from the IEEE POSIX P1003.1c standard. SEE ALSO
kill(2), sigaction(2), pthread_self(3T), raise(2). STANDARDS CONFORMANCE
Pthread Library pthread_kill(3T)
All times are GMT -4. The time now is 02:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy