File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Single ThreadModel
It's not a secret anymore!