Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-05-30
23:42 • Closed ticket [620154ffff]: Thread termination with TCL plus 6 other changes artifact: 273730235b user: vasiljevic
2003-01-03
03:17 • Ticket [620154ffff]: 4 changes artifact: b7b7a5d34b user: vasiljevic
03:09 • Ticket [620154ffff]: 4 changes artifact: 795181adbd user: elfring
2002-12-29
01:44 • Ticket [620154ffff]: 4 changes artifact: f838c7baca user: vasiljevic
2002-12-28
18:29 • Ticket [620154ffff]: 4 changes artifact: 61aec067db user: elfring
2002-10-08
10:52 • New ticket [620154ffff]. artifact: d2a91d6594 user: elfring

Thread termination with TCL

Closed620154ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-10-08 10:52:47
The documantion (http://cvs.sourceforge.net/cgi-
bin/viewcvs.cgi/*checkout*/tcl/thread/doc/html/thread.html) has 
got some warnings about the functions "thread::exit" and 
"thread::unwind".
Should some advices from the programming 
language "Java" 
(http://java.sun.com/j2se/1.4.1/docs/guide/misc/threadPrimitiveDeprecation.html) 
be added to the descriptions?
elfringplain2002-12-28 18:29:25
Logged In: YES 
user_id=572001

How are "cancellation requests" treated?
- 
http://docs.sun.com/db/doc/806-6867/6jfpgdcmh?l=de&a=view#tlib-
82704, http://docs.sun.com/db/doc/806-
6867/6jfpgdcmd?q=pthread&a=view
- 
http://www.gnu.org/software/pth/pth-manual.html#cancellation 
management
vasiljevicplain2002-12-29 01:44:25
Logged In: YES 
user_id=95086

Very simple. Thread cancellation is not part of the Tcl API. 
There are no hooks for that. Also, I have a very bad feeling 
about that and I do not think that cancellation is a good thing. 
Threads shound not be cancelled. They should be marked 
for exit and then they should exit gracefully. Everything else 
is looking for trouble,
elfringplain2003-01-03 03:09:53
Logged In: YES 
user_id=572001

The technique "interruption" is used as a solution to avoid cancellation by the 
library "ZThreads". 
(http://zthread.sourceforge.net/overview.html)
Can this design 
pattern be used by your implementation, too?
vasiljevicplain2003-01-03 03:17:59
Logged In: YES 
user_id=95086

I find this very interesting. I will have a look on Zthreads. 
Thanks for providing the link.
vasiljevicplain2003-05-30 23:42:26
Logged In: YES 
user_id=95086

I'm closing this once since there is nothing really we could do 
to influence the thread cancellation, which, in itself,  is a bad thing 
anyway.
Log in (anonymous is fine) to add a comment.