🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ����߳�A��ȴ��߳�B������ôʵ����

#19224
From: Nuclear
Date: Fri, 09 Jan 2004 05:20
18 lines
1487 bytes
лл��ң�bow
�Ҿ���join()��������⡣
���A��B������A��дB.join();
yield()�Ҿ��ã�Ӧ���ǵ���ϵͳ��task scheduler������ʱ��Ƭ��
����һ�£�����Ҳ����ʵ��
while( B.isAlive() ) { A.yield(); }
��֪���Ƿ���ȷ


�� �� tutufool (fool) �Ĵ������ᵽ: ��
: a.join(b)����b.join(a)��
: ����a.yield()�Dz���a��λ�������ʱ����b��c�أ���ȵ�b,c��ִ����ô
: �� �� manhattan (oasis) �Ĵ������ᵽ: ��
: : join


--
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 61.152.132.3]
Technical Details
Message-ID: <4ABlBP$A8K@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,bcb64720dc6beba3
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-01-08 21:24:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU
From: thomasy.bbs@bbs.sjtu.edu.cn (Nuclear)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ����߳�A��ȴ��߳�B������ôʵ����
Date: 09 Jan 2004 05:20:50 GMT
Organization: ��ˮ˼Դ
Message-ID: <4ABlBP$A8K@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1073625385.A