两个线程同时操作一个文件,一个读,一个写,怎样实现如C#中的文件共享机制,go语言中只能用锁解决?
参考文献
https://blog.csdn.net/tjjsjwhj/article/details/110621112
https://zhuanlan.zhihu.com/p/25134841