Artifacts Associated With Ticket 1578877fffffffffffffffffffffffffffffffff
Ticket change [5b725d4afa] (rid 118328) by nobody on 2006-10-17 11:43:20:
- assignee initialized to: "vasiljevic"
- cmimetype initialized to: "text/plain"
- comment initialized to:
If you run a process in a thread and try to kill it with thread::release, then the thread ID will be removed from the list even though it remains running, e.g. if it is stuck in an infinite loop.
- foundin initialized to: "obsolete: 8.4.13"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "80. Thread Package"
- title initialized to: "thread::release treats hanging processes wrongly"
- type initialized to: "Bug"
Ticket change [bb4b449dd4] (rid 129461) by vasiljevic on 2006-10-17 19:28:55:
- icomment:
Logged In: YES user_id=95086 What do you mean by "if you run a process in a thread" ? Can you give me a small example in Tcl to illustrate the problem? What platform are you using?
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"
- icomment:
Ticket change [fa3f10484c] (rid 91836) by vasiljevic on 2007-06-30 21:41:14:
- closedate changed to: "2007-06-30T14:41:14"
- closer changed to: "vasiljevic"
- icomment:
Logged In: YES user_id=95086 Originator: NO You do not "kill" a thread with thread::release. You merely flip a bit that controls what the thread will do when it re-enters its event loop again. If the thread never visits the event loop because it is stuck in executing some external process, the outcome is undefined. Please note that threads are not of an preemptive, rather cooperative "multitasking". You cannot execute the same level of control (i.e. kill) on threads like you can do on processes as this will create whole lotta havoc on shared resources (including deadlocks of various kinds). I will close this ticket now.
- login: "vasiljevic"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "vasiljevic"