由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Re: Help!!! Java in Unix. Thread. I need exit and ls concurrently runn
相关主题
怎么学multithreading/concurrency?Basic thread question
求问如何学习multithreadingHow to ues log4j to send log email in the multithreaded processes as similiar with single-threaded
java concurrency (转载)怎么可以练习多线程编程呢?
怎么练习java multithread如何快速处理上万个文件?
multi-threading guru们 (转载)求推荐的java多线程教程
question on single thread & multithread关于java的疑惑 (转载)
如何让两个socket并行执行threadjava(1.4.2) threads: out of memory error
a Java MultiThreading question请教:怎么把synchronize的method改成用thread 但thread safe呢?
相关话题的讨论汇总
话题: thread话题: counter话题: unix话题: java话题: runn
进入Java版参与讨论
1 (共1页)
l*m
发帖数: 824
1

if you use multiThread, you can do a public counter=0. for
every thread, which you want to monitor, you counter++ when
you start that thread, and counter-- when you quit that
thread.
and your exit thread just check the counter, if it is 0
you can quit, if it is greater than 0 you can sleep some
time and check again.
1 (共1页)
进入Java版参与讨论
相关主题
请教:怎么把synchronize的method改成用thread 但thread safe呢?multi-threading guru们 (转载)
NoThread concurrencyquestion on single thread & multithread
core java多线程一般面试什么如何让两个socket并行执行thread
线程池问题a Java MultiThreading question
怎么学multithreading/concurrency?Basic thread question
求问如何学习multithreadingHow to ues log4j to send log email in the multithreaded processes as similiar with single-threaded
java concurrency (转载)怎么可以练习多线程编程呢?
怎么练习java multithread如何快速处理上万个文件?
相关话题的讨论汇总
话题: thread话题: counter话题: unix话题: java话题: runn