In multiple locks when first thread has locked on to first task, how to make second thread to not sit idle and instead lock on to next task?

后端 未结 0 1035
名媛妹妹
名媛妹妹 2021-01-06 03:47

Processor class -

public class Processor extends Thread {
    private static final Object lock1 = new Object();
    private static final Object lock2 = new Ob         


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