title: How to use Thread Pool concept in Java?
body: <p>I am creating a http proxy server in java. I have a class named <strong>Handler</strong> which is responsible for processing the requests and responses coming and going from web browser and to web server respectively. I have also another class named <strong>Copy</strong> which copies the inputStream object to outputStream object . Both these classes implement <strong>Runnable</strong> interface. I would like to use the concept of Thread pooling in my design, however i don't know how to go about that! Any hint or idea would be highly appreciated.</p>