Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet 3.0 specs 2.3.3.4 doubt ?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


this is in context of Asynchronous processing.

the specs says that


Thread safety 2.3.3.4
Be aware that other than the
startAsync, and complete methods, the request and response objects are not
thread safe.


i'm not able to understand what it means ? what does other than startAsync and complete methods means ?
 
Paul Clapham
Sheriff
Posts: 21314
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In English, "Other than X" means that "X" is excluded from whatever follows in the sentence.

So in this case it means that in all methods except for startAsync and complete, those objects are not thread-safe.
 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply Paul. but my problem was not in the wording/english. my doubt was that "what does inside the methods(othe than startAsync, complete) the objects are not thread safe means ? can you tel me a scenario when the request/response objects are accessed by more than 1 thread concurrently ?
regards
gurpreet
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic