Article View: cn.bbs.comp.lang.java
Article #20722Re: [java��]������ֹһ���̵߳����У�
From: 99SE.Eric.Hsu.��̹ܿ�
Date: Mon, 15 Dec 2003 10:22
Date: Mon, 15 Dec 2003 10:22
23 lines
1348 bytes
1348 bytes
boolean isStop = false;
public void stopMe() {
isStop = true;
}
public void run() {
while (!isStop) {
// keep doing something here...
}
}
�� �� jungleboy.bbs@Freecity.dhs.org (���˹�) �Ĵ������ᵽ: ��
: stop()���������Ѿ�������
--
Nothing is easy in fact
Nothing is complicated indeed
- 03.10.05.19:21.Eric
[1;36m�� ��:��OtherVoices � 12��15��18:22:36 �ı��ġ�[FROM: 202.113.30.24][m
[m[1;36m�� ��Դ:���Ұ��Ͽ�վ bbs.nankai.edu.cn��[FROM: 202.113.30.24][m
Technical Details
Message-ID:
<49eTV0$9WG@bbs.nankai.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKaiShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f6cb0,5a1b84f2b72bc45a,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-15 02:24:45 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai From: OtherVoices.bbs@bbs.nankai.edu.cn (99SE.Eric.Hsu.��̹ܿ�) Newsgroups: cn.bbs.comp.lang.java Subject: Re: [java��]������ֹһ���̵߳����У� Date: 15 Dec 2003 10:22:37 GMT Organization: �Ұ��Ͽ�վ Message-ID: <49eTV0$9WG@bbs.nankai.edu.cn> X-Filename: Java/M.1071483600.A Lines: 23