摘要: 操作系统中"读者-写者"问题 1. OS“读者-写者”问题,理解问题的本质,提交你理解或查找到的文本资料 1、允许多个读者可以同时对文件执行读操作。 2、只允许一个写者往文件中写信息。 3、任一写者在完成写操作之前不允许其他读者或写者工作。 4、写者执行写操作前,应让已有的读者和写者全部退出。 se 阅读全文
posted @ 2022-11-10 09:29 B1smarck 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <pthread.h> //linux 线程库 #include <ctype.h> //测试和映射字符的库 struct arg_set { char *fname; int count; };//定义 阅读全文
posted @ 2022-11-10 09:11 B1smarck 阅读(17) 评论(0) 推荐(0) 编辑