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

Показать описание
In this section, we have both gui initialization code and animation code called from the swing event dispatch thread; we also modified the state variables of GameBoard so that they are published safely according to the standard of multi-threading code.