Can any of you help and explain the below text from "HeadFirst Servlets & JSP" on Context Synchronization.(Page 197)
"If code does not ask for the lock, then that code is still free to hit the context attributes.
But is you are designing the web app, then you can decide to make everyone ask for the lock before accessing the attributes".
I am not able to understand 2nd part of the text, how do we ask everyone for the lock before accessing context attributes.