Solved

Good book on threading as relates to Servlets

Posted on 2003-11-30
5
261 Views
Last Modified: 2013-11-24
Could anyone recommend one ?

And also could you tell me if books/tutorials that use examples of threading such as:

Thread thread1 = new Thread();
thread1.start();

are useful to people who program only in servlets ? I ask as I have never used the Thread class explicitly in my code and don't want to put lots of effort into understanding threading in this situation if it's examples do not trabsfer well to Servlet programming.

Thanks.
0
Comment
Question by:klogger
  • 4
5 Comments
 
LVL 92

Expert Comment

by:objects
ID: 9846744
0
 
LVL 92

Expert Comment

by:objects
ID: 9846749
They aren't overly useful in servlets as they tend to rarely require >1 thread due to the fact that they simply process a request and return a result, and generally do not do any background processing.
0
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 9846759
An example where threads could be used in a servlet is where you need to perform a lengthy request in a servlet, so the servlet request would initate a new thread to perform the process and return a response to the user saying the task was 'in progress'.
0
 

Author Comment

by:klogger
ID: 9846989
I was always unsure if that tutorial would be useful to me, and it looked huge, but having thought about your answer I found a link in the Web services tutorial at:

http://java.sun.com/webservices/docs/ea1/tutorial/doc/Servlets5.html

that also recommends I should read it. So I shall !

Thanks for your help.
0
 
LVL 92

Expert Comment

by:objects
ID: 9846997
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now