Article View: cn.bbs.comp.lang.java
Article #20757Re: [��]threadһ��
From: apollo
Date: Mon, 15 Dec 2003 14:52
Date: Mon, 15 Dec 2003 14:52
26 lines
1776 bytes
1776 bytes
Ҳ����˵ʵ�־�������������һ��implements runnable���࣬�Բ���
class Threadpool�Ƕ�pool�Ĺ���
class worker�Ƕ�һ����̵ĵ���
class x implements runnable ����һ����̵IJ���
�������������
�� �� eldon (don) �Ĵ������ᵽ: ��
: ������һ��ʵ����Runnable�ӿڵĿ������µ��߳������е��йؿͻ��������
: �� �� apollow (apollo) �Ĵ������ᵽ: ��
: : ��һ��threadpool�Ĵ���
: : import java.util.LinkedList;
: : public class ThreadPool
: : {
: : static final long IDLE_TIMEOUT = 60000L;
: : private String name;
: : private int minsize;
: >> .................<����ʡ��>............
--
/configure
make
make install
[m[1;36m�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: apollow][m
Technical Details
Message-ID:
<49eaV6$AST@Freecity.dhs.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!skynet.be!newsgate.cistron.nl!news2.euro.net!63.223.20.72.MISMATCH!sjc72.webusenet.com!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!FreecityShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,8a2d9b31c68adff9 X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-15 06:52:18 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!skynet.be!newsgate.cistron.nl!news2.euro.net!63.223.20.72.MISMATCH!sjc72.webusenet.com!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity From: apollow.bbs@Freecity.dhs.org (apollo) Newsgroups: cn.bbs.comp.lang.java Subject: Re: [��]threadһ�� Date: 15 Dec 2003 14:52:23 GMT Organization: Ʈ��ˮ�Ƽ� Message-ID: <49eaV6$AST@Freecity.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1071499734.A Lines: 26