Command对象可能是有状态的,也可能是无状态的。
当在一个等待函数中使用同步对象时,等待函数就会阻塞调用线程,直到同步对象的状态被设置为有信号为止。
When the synchronization object is used in one of the wait functions, the wait function blocks the calling thread until the state of the synchronized object is set to signaled.
对象方法为有状态系统的设计带来其他优势。
Object methods bring other advantages to designing stateful systems.
应用推荐