Thread.stop()方法会导致数据不一致的问题

stop()方法已经被jdk废弃,原因就是stop()方法太过于暴力,强行把执行到一半的线程终止,可能会引起一些数据 不一致的问题 public class TestQrcode{    public static User user =new User(); public static class User{ private int id; private String name; public
相关文章
相关标签/搜索