今天看到这么一个语句:
public static volatile boolean isWinnerFound = false;
public static List<String> actions = new ArrayList<>();
static {
actions.add("开始游戏");
actions.add("收集资源");
actions.add("增长经济");
actions.add("杀死敌人");
}
protected Gamer gamer1 = new Gamer("史密斯", 3);
protected Gamer gamer2 = new Gamer("琼斯", 1);
protected Gamer gamer3 = new Gamer("盖茨", 5);
@Override
public void run() {
gamer1.start();
gamer2.start();
gamer3.start();
while (!isWinnerFound ) {
}
gamer1.interrupt();
gamer2.interrupt();
gamer3.interrupt();
}
这个里面的while()语句是什么意思