Solved

Good book on threading as relates to Servlets

Posted on 2003-11-30
5
266 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 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to see all occupied ports on windows 10 laptop 15 83
hibernate example for saving data 19 76
Why is enum singleton a better approach than static factory 3 50
Java List 4 38
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

749 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