标签:synchronisation
-
同步:线程以相同的顺序执行两个关键部分 - java
我有以下类型的代码: synchronized block1 { //only one thread in the block } {lot of code where synchronization not necessary} synchronized block2 { //only one thread in the block. //All the […]
我有以下类型的代码: synchronized block1 { //only one thread in the block } {lot of code where synchronization not necessary} synchronized block2 { //only one thread in the block. //All the […]