• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread question  RSS feed

 
indra sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we have a servlet,which acts as a controller,and forward request to action depending on action name(command pattern).
action class we instantiate at the start of the server,and store in hashmap.
My question is if multiple reuest comes to same action at the same time what will happen?
it will go on queue and request executed one by one or it will execute parallaly.
Thanks in advance.
 
Ajay Saxena
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Request execution will proceed concurrently in this case(assuming your servlet doesn;t implement the SingleThreadModel interface)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!