系统调用,减少系统调用次数以提高系统效率

以文件拷贝为例: We’ll do this in a number of ways during this chapter to compare the efficiency of each method. For brevity, we’ll assume that the input file exists and the output file does not, and that... [阅读全文]

dup2补丁工具,Linux 系统库函数 -- dup 和 dup2

The dupsystem calls provide a way of duplicating a file descriptor, giving us two or more different descriptors that access the same file. These might be used for reading and writing to different loca... [阅读全文]
1 共1条 分1页