In Java, one would synchronize methods or blocks that access a shared resource that is needed in a multi-threaded environment.
Sim开发者_如何学JAVAple question. Can I do this: object Xyz extends Actor { ... } or do Actors have to be classes with instances?Object extending Actor works fine.