看完这两篇文章,理解间歇锁: https://www.cnblogs.com/renolei/p/4673842.html https://www.cnblogs.com/crazylqy/p/7773492.html