[585] in Pthreads mailing list archive
pthread_cancel
daemon@ATHENA.MIT.EDU (Craig Taverner)
Fri Mar 7 09:51:03 1997
Date: Fri, 7 Mar 1997 16:21:31 +0200 (SAT)
From: Craig Taverner <craig@hobbes.gh.wits.ac.za>
To: pthreads@MIT.EDU
Hi,
I've developed a number of thread based timeout routines for common socket
operations (connect, accept, read, write, and others) under Solaris 2.5
using the solaris pthread library. Everything works quite well. I then
tried to run this under Linux with Proven's Pthreads and found that they
appear not to have pthread_cancel and associated functions
(pthread_setcancelstate(), etc).
I was using the pthread library Proven announced in Nov 96. From the web
page this appears to be the latest. Does it really not have
pthread_cancel(). Is pthread_cancel not part of the posix standard? I've
just tried the kernel based (clone() based) LinuxThreads version of
pthreads from Xavier Leroy. My code seems to work fine with them.
Are the Xavier threads more advanced than the Proven ones, or is it just
that Proven had to compromise on functionality in order to support such a
wide range of operating systems? Is it the user-level threading issue
that prevents the easy implementation of pthread_cancel?
I've recently got involved in threaded programming, and would like to
understand the inner details a bit more. Anyone have any answers for me?
Thanks, Craig
------
"If God had intended Man to Watch TV, He would have given him Rabbit
Ears."
Craig Taverner
Structural Chemistry, University of the Witwatersrand, South Africa
tel: +27-11-716-2290 fax: +27-11-716-3826
email: craig@hobbes.gh.wits.ac.za
www: http://www.gh.wits.ac.za/craig