Hi All,
Im developing a sample app to build up my java skills. Im creating a Simple Chat application which uses jsp,Dwr,Java and jdbc and a feww other technologies to build the same. If i want to implement threading in some meaningful way to improve the performance of my app how can i do so?? Please pour in your suggestion.

Recommended Answers

All 3 Replies

Have you read the tutorial about threading and the API doc about the Thread class?
Do you know why you would want to use threads?

Yes, i did read about Threads and the API doc. Threads provide the only way to effectively handle a number of tasks. But in the above scenario I could see a few places where threads can be used. As I have not used this so far was hoping to get some ideas if it can be used in an effective way in the above mentioned scenario.

Use threads for tasks that block while waiting I/O.
Use threads when you don't want to freeze the GUI

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.