• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Single ThreadModel

 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between SingleThreadModel and MultiThreadModel.
Thanks,
Mathews.
 
kevin chang
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SingalThreadModal allows one thread access the Servelt at one time, it takes effect on Class valiables, it doesn's make new instance of class valiables, but MulitiThreadModal does. Servlet is default as MulitiThreadModal. you can also singal thread by sychronized the codes or methods.
regards
 
Bish Ach
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Single Thread means One Thread Per Servlet Instance...
Multi Thread means More than One Thread Per Servlet Instance..
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this link...
Single Thread vs. Multi Thread
hth
MB
 
Angel Dobbs-Sciortino
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SingleThreadModel is deprecated as of Servlet API 2.4.
Angel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic