progressA.c
编译:gcc progressA.c -o progressA -lpthread -lrt
运行:./progressA
进程互斥:有名信号量
线程互斥:互斥锁
函数功能:
thread_add1、thread_add2验证线程互斥同步
thread1、thread2验证进程互斥同步
/* example.c*/
#include <sys/mman.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#i