摘要: 该小程序创建了4个线程作为窗口进行演示抢票,程序中简单的使用pthread_mutex_lock与pthread_mutex_unlock: main.c: 编译: (警告正常,int类型与void*转化) 结果: 阅读全文
posted @ 2019-03-29 17:10 Survivor123 阅读(455) 评论(0) 推荐(0) 编辑
摘要: alarm.c alarm.h main.c makefile: 结果如下: 阅读全文
posted @ 2019-03-24 16:20 Survivor123 阅读(266) 评论(0) 推荐(0) 编辑
摘要: getopt.c 不同的选项参数调用不同的函数: stat.c 四个选项功能函数实现: stat.h makefile: 运行结果: . 当前目录 阅读全文
posted @ 2019-03-15 16:02 Survivor123 阅读(575) 评论(0) 推荐(0) 编辑