• Post Reply Bookmark Topic Watch Topic
  • New Topic

Context attributes thread safe or not?

 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am still confused about this.Some sites say since all requests can access them,they are not thread safe.Some sites say,since they can't be changed when the aplication is up,they are thread safe.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65665
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aman thind wrote:.. since they can't be changed when the aplication is up ...


I'd check the veracity of this claim.
 
Arie Prastowo
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you cannot change context init parameter. (thread safe)
but you can change context attribute (not thread safe)
 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arie Prastowo wrote:you cannot change context init parameter. (thread safe)
but you can change context attribute (not thread safe)


Thanks Arie
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!