aspose file tools*
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
Author

Single ThreadModel

Mathews P Srampikal
Ranch Hand

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


Thanks,
Mathews
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.
regards


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

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
Author
Ranch Hand

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


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.
Angel
 
jQuery in Action, 2nd edition
 
subject: Single ThreadModel