🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ��ѧ�߹����߳�����~~~

#21358
From: sure
Date: Fri, 05 Dec 2003 16:57
18 lines
2360 bytes
 resume(), suspend() ����������sun �Ѿ������ˣ���ò�Ҫ���ˡ�
wait ���̵߳ȴ������ͣ������̵߳Ļȥ����������飬notify��֪ͨ����߳�
������

�� �� SmallX@bbs.pku.edu.cn (46"CoalBH;��ӭ�μӺ�ͿSmalllX��� �Ĵ������ᵽ: ��
: ����˵ synchronized ��ʵ����һ��������һ���߳̽����ʱ���Ͱ� synchronized 
: ��Ķ������ֱ�����˿�ŰѶ��������ֹ�����߳����ڼ�ı�������
: //Java                            //Nature Language
: synchronized(obj){                lock(obj);
:    ...                   <=>          ...
: }                                 unlock(obj);
: ��֪�����ĶԲ��ԣ�Java�������ĵ����˵�IJ������ס�
: ��ô��wait()��notify()��ʲô��˼������ôҪ�����Ƕ�� synchronized ��ߣ�
: �Ҿ��û��� resume(), suspend() �����һЩ��һ������һ���ָ�������Java������
: �ĵ����˵���Ƽ�������wait()��notify()����ʲô��˼����Ϊʲô������� synchronized
: .................������ʡ�ԣ�
--
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.80.44.203]
Technical Details
Message-ID: <49X0j6$9iJ@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!skynet.be!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!news2.euro.net!63.223.20.72.MISMATCH!sjc72.webusenet.com!sjc70.webusenet.com!news.webusenet.com!news.bylinux.net!news.ccie.net.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,4a23158f6712ec04
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-05 09:00:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!skynet.be!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!news2.euro.net!63.223.20.72.MISMATCH!sjc72.webusenet.com!sjc70.webusenet.com!news.webusenet.com!news.bylinux.net!news.ccie.net.cn!SJTU
From: tianmingjie.bbs@bbs.sjtu.edu.cn (sure)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ��ѧ�߹����߳�����~~~
Date: 05 Dec 2003 16:57:47 GMT
Organization: ��ˮ˼Դ
Message-ID: <49X0j6$9iJ@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1070643318.A
Lines: 18