使用延迟的随机写操作,当内存中的页面数量超过指定的数量,则将所有后续的页面写入到磁盘。
With random write behind, the number of pages in memory exceeds a specified amount and all subsequent pages are written to disk.
文本段同样会将二进制文件映射到内存,但文件映射区域的写入操作只能以程序收到段错误而告终。
The text segment also maps your binary file in memory, but writes to this area earn your program a Segmentation Fault.
因为每个线程都试图对全局空间进行写操作,所以必须确保它们同步地写入内存,否则消息就会遭到破坏。
As each of the threads try to write to the global space, it is necessary to take care that they write to the memory in sync, or else the messages will get corrupted.
应用推荐