The Alternative class provides methods for the three types of event-selection strategy.
alternative类为三种事件选择策略提供了方法。
The method select() of the Alternative class corresponds to an arbitrary selection strategy.
Alternative 类的 select() 方法对应着 任意选择 策略。
The select method call blocks until one or more guards are ready (remember that all contending guards are known to the Alternative class).
select方法调用一直受阻塞,直到一个或多个警卫就绪为止(请记住,所有竞争的警卫对于alternative类来说都是已知的)。
应用推荐