詳見這篇文章
https://blog.csdn.net/Vincent2014Linux/article/details/89669762
事物與鎖,詳見這篇文章
https://www.cnblogs.com/maying3010/p/8804941.html