killing thread

V

Vitale Ferruccio

Hi all,

I've two threads: the former blocked in an sleep(seconds) and the latter
which have to kill the former. Even if I call pthread_cancel or deliver
a SIGTERM signal with pthread_kill, the former thread continues to
run and it exits only after timer expires.

Any ideas?

Regards
Ferruccio
 
F

Flash Gordon

Vitale said:
Hi all,

I've two threads: the former blocked in an sleep(seconds) and the latter
which have to kill the former. Even if I call pthread_cancel or deliver
a SIGTERM signal with pthread_kill, the former thread continues to
run and it exits only after timer expires.

Any ideas?

Yes. Post on a group where sleep and pthreads are on topic. They are off
topic here where we only deal with standard C. Alse read the FAQ and
recent posts for the group before posting. I suggest you look for groups
with "thread", "posix" or "unix" in the name.
 
L

Lawrence Kirby

Hi all,

I've two threads: the former blocked in an sleep(seconds) and the latter
which have to kill the former. Even if I call pthread_cancel or deliver
a SIGTERM signal with pthread_kill, the former thread continues to
run and it exits only after timer expires.

Any ideas?

Unfortunately threads are not part of the standard C programming language.
Try asking in a newsgroup such as comp.programming.threads.

Lawrence
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,918
Members
47,458
Latest member
Chris#

Latest Threads

Top