Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有两个同步时钟
synclock a synclock b end synclock end synclock
如果我从来没有遇到过,我是否有陷入僵局的危险
synclock b synclock a end synclock end synclock
在我的代码中,但我在 a 或 b 上随机同步?
只要您始终在 b 之前锁定 a ,那么您就可以了。