Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Good book on threading as relates to Servlets

Posted on 2003-11-30
5
Medium Priority
?
271 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

610 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