积极答复者
关于线程的处理问题

问题
-
当我用
classs testThread
dim myThread as thread
sub start()
for i=0 to 1
myThread = new thread(address of Runthread())
myThread.start()
end for
end sub
sub Runthread
do
end do
end thread
end class
以上语句如果不做判断会启动3个线程,我怎么样能在一个线程启动后,不再启动另外2个线程。
换句话说就是如果有3个调用同时sub的线程在运行,我怎样知道某个 thread.ManagedThreadId 是否正在运行。