Shared Tensor in MultiProcessing


I just read the tutorial MULTIPROCESSING BEST PRACTICES. I am wondering what will happen if two processes modify the shared tensor at the same.

In the tutorial, it is suggested to use Queue to avoid deadlock but in the example mnist_hogwild there is no such thing. Is there anything I should be careful while using the shared tensor?