Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts is ThreadSafe

 
rex tony
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we say that Struts is ThreadSafe?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rex tony:
How can we say that Struts is ThreadSafe?

You can't really say that a framework such as Struts is or isn't thread-safe. Such a statement has no meaning. An individual class can be declared thread-safe or thread-unsafe based on whether or not methods in the class can safely be called simultaneously by different threads in the same JVM and still function as they should.

Regardging thread safety, the following is a true statement:

Because the execute method in a Struts Action class can be called by multiple threads in the same JVM, the class must be coded as "thread-safe" in order to function properly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic