Synchronised function returning null sometimes

前端 未结 0 1658
你的背包
你的背包 2021-01-21 18:06

In a multi-threaded program, I have a class

public class someClass {

private static int orderTag = 0;

// Increment tag inside synchronized to make it thread saf         


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