LearnHouse

Archive for 六月, 2019

[轉]Linux IPC System V 信号量

資料來源:https://www.cnblogs.com/xiaojiang1025/p/5936135.html

模型

#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
ftok()              //获取key                 
semget()            //创建/获取信号量集     
semctl()            //初始化信号量集           
semop()             //操作信号量集            
semctl()            //删除信号量集            

Read more...

posted by admin in 程式&軟體 and have No Comments

[轉]Makefile中wildcard notdir patsubst使用方法

資料來源:https://blog.csdn.net/liangkaiming/article/details/6267357

1、wildcard : 擴展通配符
2、notdir : 去除路徑
3、patsubst :替換通配符
Read more...

posted by admin in Linux and have No Comments