I know maybe the answer to the question is obvious. But if anybody can give me a definitive answer, that would be helpful.
The question is : whether the java NIO package can provide some memory consistency assurance?
The scenario is :
Thread A Thread B
[modify Object X]
[Send a request A over TCP by NIO]
[receive response for request A over TCP by NIO]
[read Object X]
Does the modification made by thread A is visible to thread B if there isn't any synchronization/safely reference pulication between thread A and Thread B by the application.
Thanks a lot for your help.