🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [��]threadһ��

#20754
From: don
Date: Mon, 15 Dec 2003 14:29
22 lines
1545 bytes
������һ��ʵ����Runnable�ӿڵĿ������µ��߳������е���

�� �� apollow (apollo) �Ĵ������ᵽ: ��
: ��һ��threadpool�Ĵ���
: import java.util.LinkedList;
: public class ThreadPool
: {
:    static final long IDLE_TIMEOUT = 60000L;
:    private String name;
:    private int minsize;
:    private int maxsize;
:    private int nextWorkerId = 0;
: >>  .................<����ʡ��>............


--
/*----------------------------------*/
(!C++)?JAVA:VB.NET    //���ѡ���е���
��� ����MFC��.NET��JAVA һ���������٣�
/*----------------------------------*/ 

�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: eldon]
Technical Details
Message-ID: <49ea69$AST@Freecity.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show 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:27:19 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: eldon.bbs@Freecity.dhs.org (don)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [��]threadһ��
Date: 15 Dec 2003 14:29:49 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <49ea69$AST@Freecity.dhs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1071498537.A