Marco Ehrentreich wrote:Every Java application uses threads. A standalone application uses at least one main thread which is implicitly created when you start an application. Applications running inside a Servlet container or application server even use many more threads.
Threads are useful if you want to have your application do more than one thing in parallel to improve performance. Multi-threaded programming is particularly useful with modern multi-core CPUs to get the most out of your hardware. If an application isn't designed to run with multiple threads you won't gain any improvement by using CPUs with more than a single core.
Marco
thanks but i have one more thing to ask is that i m making my final year project which is a bussiness management system which handles all the data about employess , and there attendence and salary and also this system contains tender management module ..till now i have just one thread and that too is main thread should i go for multi threads for this project
yes or no , if yes than should i make each and every listener class a thread .
if no ..then why ?