Article View: cn.bbs.comp.lang.java
Article #19134Re: ����߳�A��ȴ��߳�B������ôʵ����
From: The day you went away����
Date: Fri, 09 Jan 2004 07:27
Date: Fri, 09 Jan 2004 07:27
21 lines
1752 bytes
1752 bytes
yield�ѻ���ø�˭�Dz�һ����
�� �� thomasy (Nuclear) �Ĵ������ᵽ: ��
: лл��ң�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��ִ����ô
--
[1;33mYou know I [5;31mreally really[0m[1;33m do...[m
[s[1;18H[1;33m(The day you went away����)[m[u
[m[1;32m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 218.193.186.213][m
Technical Details
Message-ID:
<4AC2UA$9yH@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!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 23:29:25 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU From: Continue.bbs@bbs.sjtu.edu.cn (The day you went away����) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ����߳�A��ȴ��߳�B������ôʵ���� Date: 09 Jan 2004 07:27:53 GMT Organization: ��ˮ˼Դ Message-ID: <4AC2UA$9yH@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1073633194.A