Article View: cn.bbs.comp.lang.java
Article #19224Re: ����߳�A��ȴ��߳�B������ôʵ����
From: Nuclear
Date: Fri, 09 Jan 2004 05:20
Date: Fri, 09 Jan 2004 05:20
18 lines
1487 bytes
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
--
[m[1;36m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 61.152.132.3][m
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!SJTUShow 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