Solved

Good book on threading as relates to Servlets

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Checkbox and ListView in Android Layout 4 56
mockito example issue 8 62
xampp tool 12 24
oracle 11g 23 48
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 will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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:

912 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

21 Experts available now in Live!

Get 1:1 Help Now