🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #24703

�������߳�

#24703
From: ����˭
Date: Mon, 29 Dec 1997 00:00
33 lines
1160 bytes
�������̵߳ķ��������֣�һ����implement Runnabl����һ����
����Thread�����ࡣ����Ч�ķ����Ǻ��ߡ�
���ӣ�
class SubThread extends Thread{
   SubThread(){
      super(this);
      ....
   }
   public void run(){
        ....
   }
        ....
}

public class MainThread{
   public static void main(String args[]){
      SubThread t;
        ...
      t=new SubThread();
      t.9start();
        ...
        t.stop();
        ...
   }
}
        
        
--
_________________________
���˲�����ͻ,���Ʋ�����̣

�� ��Դ:���������� BBS bbs.nease.net��[FROM: 202.96.161.212]
Technical Details
Message-ID: <3MJRbd$7Gi@bbs.nease.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,e2ec137df405cb9,start
X-Google-Attributes: gidf6cb0,public
From: jwolf.bbs@bbs.nease.net (����˭)
Subject: �������߳�
Date: 1997/12/29
Message-ID: <3MJRbd$7Gi@bbs.nease.net>
X-Deja-AN: 310899036
X-Filename: Java/M.883362327.A
Organization: Net Ease
Newsgroups: cn.bbs.comp.lang.java,