• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Threadsafely of variables.

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I was reading the thread safety of variables when we implement the SingleThreadModel interface and when we don�t implement the SingleThreadModel interface. The final conclusion is that only the request time variables and the local variables are thread safe and no other variables. That�s fine with me, no issues in that.

My doubt is that is that � Is StringBuffer variables thread safe irrespective of their position and irrespective of whether the class implements SingleThreadModel�??? (As the StringBuffer Class objects are threadsafe by default). Please clarify if I am wrong to interpret something.

Thanks in advance.
[ December 07, 2006: Message edited by: Siddharth Purandare ]
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok, this is a redundant question.
Like I said before, SingleThreadModel is deprecated and no longer on the exam so you can forget about it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic