Article View: cn.bbs.comp.lang.java
Article #21627Re: synchronize ������ʲô��
From: ���˹ȵ�С���
Date: Fri, 21 Nov 2003 01:10
Date: Fri, 21 Nov 2003 01:10
18 lines
1538 bytes
1538 bytes
ʵ��֤��3��һ��
�� �� silveryyin (��Ұ���٣�����С�̺���) �Ĵ������ᵽ: ��
: 1��������ʲô������
: 1.5 synchronized func1()
: func1()�������ж��ʵ��ͬʱ���ʣ�������Ҷ���
: 2��synchronized func1()
: synchronized func2()
: ���⣺�Dz��Dz�����ͬʱ�������������������ǻ���ô��
: 3��synchronized(flag1)(procedure1())
: synchronized(flag1)(procedure2()),
: ���⣺procedure1��procedure2������
: �����ָ�㡣
--
[3I
û��û��
[m[1;34m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.80.44.159][m
Technical Details
Message-ID:
<49LRGF$ASP@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,c9ab9e1b3e5ada2a X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-11-20 17:11:10 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: minnow.bbs@bbs.sjtu.edu.cn (���˹ȵ�С���) Newsgroups: cn.bbs.comp.lang.java Subject: Re: synchronize ������ʲô�� Date: 21 Nov 2003 01:10:55 GMT Organization: ��ˮ˼Դ Message-ID: <49LRGF$ASP@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1069377039.A