Thread Pools in Executor Sevice decreasing data to negative even when condition is to stop at zero

后端 未结 0 1595
梦谈多话
梦谈多话 2021-01-07 05:40

Processor class -

public class Processor extends Thread {

    private static int stock = 10;

    private static Object lock1 = new Object();
    private sta         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题