线程同步问题

1.Sync(方法、代码块)

  Sync是自动锁

2.Lock unLock

  Lock 是手动锁

posted @ 2020-03-27 17:22  ToBeContinue得  阅读(93)  评论(0编辑  收藏  举报