# 二、禁锢

update t set c = c + 1 where id = 1;


...

i++;


synchornize {
i++;
}


# 五、海纳百川

It allows multiple threads to read a certain resource, but only one to write it, at a time.

# 六、凤凰涅磐

Mysql 会怎么做呢？

Intention locks are table-level locks that indicate which type of lock (shared or exclusive) a transaction requires later for a row in a table