• Post Reply Bookmark Topic Watch Topic
  • New Topic

multi threading in servlets  RSS feed

 
Swapnil Dharane
Ranch Hand
Posts: 55
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is there any specific name for servlet's multi threading mechanism? I mean any technical term for it.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The term for "multi threading" is "multi threading" :-) But seriously, I'm not sure what you're asking - what kind of other term are you looking for? What would it describe that "multi threading" doesn't?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about the way the servlet container manages multiple requests with multiple threads in a Thread pool - NOT under the programmer's control.
-OR-
Servlet programmers starting Threads for some application purpose.

Big difference

Bill
 
Swapnil Dharane
Ranch Hand
Posts: 55
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,
I was referring to the first situation i.e. thread pooling managed by servlet container.I was wondering whether there is any specific term for the same?
 
J. Kevin Robbins
Bartender
Posts: 1801
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was this a job interview question?
 
Swapnil Dharane
Ranch Hand
Posts: 55
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good grief, the nonsense that people will ask in an interview never ceases to boggle me.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as already mentioned, Interview question is bit strange.
I guess , interviewer did not framed question correctly - he was trying to ask you about STM or STS.
STM = Single Thread model for Servlet
STS = Single Threaded Servlets
As you may be aware that Servlets can be made single threaded.
So, I guess , interviewer wanted to listen the term "Single Thread Servlets".
 
Swapnil Dharane
Ranch Hand
Posts: 55
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do know abt SingleThreadModel. But would l would like to know abt single threaded servlet(Although it seems to me that both mean the same thing).
 
J. Kevin Robbins
Bartender
Posts: 1801
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swapnil Dharane wrote:Yup

That's what I suspected. We've seen lots of examples of interviewers who understand neither the question nor the answer, they just like to sound smart.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Details of Single Thread Model
http://www.javaworld.com/article/2072798/java-web-development/write-thread-safe-servlets.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!