Article View: cn.bbs.comp.lang.java
Article #21343��ѧ�߹����߳�����~~~
From: 46"CoalBH;��ӭ�μӺ�ͿSmalllX�������...
Date: Fri, 05 Dec 2003 09:07
Date: Fri, 05 Dec 2003 09:07
30 lines
1693 bytes
1693 bytes
����һ���߳���
class a implements Runnable{
...
public void run(){
...
}
}
����main�������һ������
public static void main(){
...
a aa=new a();
Thread th=new Thread(a);
th.start();
...
(other code include Thread thh=new Thread(b); thh.start(); etc)
...
}
�����ǣ��Ҳ���thռ��̫���ʱ�䣬һ��������ǹ���ģ�ֻ����ijЩ(����thh������)
����г�����ijЩ�����ʱ������th�ָ����д��?�������˼�����š���ô�Ҹ�
������أ�лл��
--
A.B C.D.E F.G.a.b c
��con passione��
Zzzzzzz
[m[1;37m�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 162.105.69.169][m
Technical Details
Message-ID:
<49WaTg$A4P@bbs.pku.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKUShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,4a23158f6712ec04,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-05 01:09:44 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU From: SmallX@bbs.pku.edu.cn (46"CoalBH;��ӭ�μӺ�ͿSmalllX���������) Newsgroups: cn.bbs.comp.lang.java Subject: ��ѧ�߹����߳�����~~~ Date: 05 Dec 2003 09:07:35 GMT Organization: ����δ��վ Message-ID: <49WaTg$A4P@bbs.pku.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1070614938.A Lines: 30