A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Threads & Instances
Joined: Aug 11, 2003
Sep 10, 2003 07:36:00
I have a very general question as i am a neophyte in
I want to know what is difference between instances and threads in servlets/jsp.
I want to know how does
handled multiple requests(simultaneous).
<a href="http://www.galaxyweblinks.com" target="_blank" rel="nofollow">www.galaxyweblinks.com</a><br /><a href="http://www.freechatcode.com" target="_blank" rel="nofollow">www.freechatcode.com</a><br /><a href="http://www.onlinefamilytreemaker.com" target="_blank" rel="nofollow">www.onlinefamilytreemaker.com</a>
Joined: Sep 02, 2003
Sep 10, 2003 08:00:00
I think you should read about processes and threads.
Sun tutorial at
may help you.
If you use
for a servlet, an instance of servlet is created for each request.
Ohterwise, a new thread is created for each request.
I agree. Here's the link:
subject: Threads & Instances
Thread B has to start after completion of 5 instances of Thread A
when not to use thread
Why would the container create more instances of the same MDB
NX: static RandomAccessFile?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014