Check this out skeptical!!

http://www.gjt.org/servlets/JCVSlet/show/gjt/org/gjt/rm/util/ThreadPool.java
/1.1.1.1

I don't know weather its nicely written or stuff... Just happen to have this
link me!! All you can do with this is get a fair idea of how to implement
thread pool and what issues are to be addressed!!
In java you'll have to use the wait/notify architecture to have the thread
not consume CPU when it has no work to do. CPU scheduler will automatically
swap the threads waiting on I/O... although I don't know how to block the
pending async I/O thread in java. (and wot u mean by that)
Cheers:)
Anup!!


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of skeptical
Sent: Wednesday, August 30, 2000 5:35 AM
To: [EMAIL PROTECTED]
Subject: thread pool needed


i'm writing a high performance multithreaded java network server apps? such
a server will have many threads listening & servicing incoming network
clients. java is new to me. i've been using C++ on windows nt. on windows,
they have something called I/O completion port which allows you to block any
pending async I/O thread so they dont consume any cpu. they also have a
os-based kernel thread pool which does thread pooling for you. do you guys
know where i can find a nicely written java thread pool out there for
heavily multithreaded client server apps?

tks,
peter

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to