• Post Reply Bookmark Topic Watch Topic
  • New Topic

is singlethread model is thread safe?  RSS feed

 
VijayGanesh Thandeeswaran
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi rachers,
Am preparing for scwcd1.5. Am having doubts is single thread model, whether it's thread safe or not?. can any one help me?
I think, it is not thread safe? Am i correct?
Regards,
T.Vijay Ganesh
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're correct. Even if all servlets in a web application implement the STM interface, the web app would still not be threadsafe. That's part of the reason why the interface was deprecated.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!