The serialization operation is not thread safe, and it is not recommended to serialize an object that is being modified. However, any deep copy of an object in the same thread, process, or universe is a full copy and does not change when the original changes.
Note. If you send the updated object again, you may not see the update because it simply sends a link to the object. For this reason, you must call the reset()sender if you want to send the update. Another reason for using it reset()is to avoid a โmemory leak,โ since the sender and receiver would otherwise remember every object they have ever written / read.
source
share