Skip to content
Tcl Source Code Artifact [f4d8cb8d0d]
Login

Artifact [f4d8cb8d0d]

Artifact f4d8cb8d0dc63ff7ecfac97ecb89a3566659a4ff:

Attachment "getHelp.tcl" to ticket [3494470fff] added by rtreleaven on 2012-02-26 08:21:27.
set truth(1) yes
set truth(0) no
package require Thread
set id [ thread::id ]
for { set i 0 } { $i < 6 } { incr i } {
	thread::create -preserved {
		while 1 {
			for { set i 0 } { $i < 9999999 } { incr i } {}
			update
		}
	}
}
after 1000
foreach id [ thread::names ] {
	if { $id eq [ thread::id ] } { continue }
	thread::release -wait $id
	puts "Does thread exist? $truth([ thread::exists $id])"
}