filmov
tv
A simple multi-threading Java game with monitor pattern -- part8

Показать описание
In this version of VehicleTracker, the tank position is stored in a mutable but thread safe SafePoint, so that the reference to the SafePoint can be published to multiple threads and the calling threads can modify the state variables of the SafePoint.