2024-05-18 10:08:19 发布
网友
我已经使用多处理产生了多个进程。进程在一个循环中,每个进程都试图读取同一个文件。这会引起问题吗?欢迎参考答案
没问题。不仅适用于文件,也适用于RAM。只有当有人写信时,你才会遇到麻烦
这种现象被称为data race(强调矿山):
access [==read] a memory location at the same time that a memory operation in another thread is writing to that memory location
没问题。不仅适用于文件,也适用于RAM。只有当有人写信时,你才会遇到麻烦
这种现象被称为data race(强调矿山):
相关问题 更多 >
编程相关推荐