?
Solved

Good book on threading as relates to Servlets

Posted on 2003-11-30
5
Medium Priority
?
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 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