This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • 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: 42970
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!