From http://blog.csdn.net/kickxxx/article/details/50337647当out of memory发生时,out_of_memory函数会选择一个内核认为犯有分配过多内存 “罪行”的进程,并杀死该进程。这就有很大的几率腾出较多的空闲页,然后再跳转回重试内存分配的操作。这里我们不讨论out_of_memory 函数流程 选择要牺牲进...【阅读全文】
IPC/sem.ckernel中include/uapi/linux/sem.h/* semop system calls takes an array of these. */struct sembuf { unsigned short sem_num; /* semaphore index in array */要操作的信号灯的编号 short sem_op;&nb...【阅读全文】