This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Single ThreadModel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Single ThreadModel" Watch "Single ThreadModel" New topic

Single ThreadModel

Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
What is the difference between SingleThreadModel and MultiThreadModel.

kevin chang
Ranch Hand

Joined: Mar 08, 2003
Posts: 64
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.

Sun Certified Java Programmer, Sun Certified Java Developer. <br />Strving to be a real architect.
Bish Ach

Joined: Oct 06, 2003
Posts: 26
Single Thread means One Thread Per Servlet Instance...
Multi Thread means More than One Thread Per Servlet Instance..
Malhar Barai
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
Check out this link...
Single Thread vs. Multi Thread

Malhar Barai
SOA & Java Book
Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
SingleThreadModel is deprecated as of Servlet API 2.4.
wood burning stoves
subject: Single ThreadModel