• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread Safe

 
Sandeep Chhabra
Ranch Hand
Posts: 340
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implementation of request and response objects are guaranteed to be thread-safe. True/False?

A True
B False

Can anyone please confirm the answer of this question.
Thanks
 
Reshma Shanbhag
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Request and Response Objects are Thread Safe
 
Sandeep Chhabra
Ranch Hand
Posts: 340
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer given was false.

request and response objects are not guaranteed to be thread safe.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

From which mock exam you are reffering this question ?

Please refer this thread.

Thanks
 
Sandeep Chhabra
Ranch Hand
Posts: 340
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was the explination given in support of the said answer

Implementation of the request and response objects are "not guaranteed" to be thread safe. They should only be used within the scope of the request handling thread.

References to the request and response objects must not be given to objects executing in other threads as the resulting behaviour may be non-deterministic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic