操作系统代码实现:Number Project Name Content Summary State Type 一、Process Scheduling Algorithm Simulation 1、 Simulate the operation of the round-robin algorithm for process scheduling. 2、 Create at least 15 processes and output their scheduling situation under the scheduling algorithm mentioned above and output it to theterminal to check the execution of the algorithm. 3、 The output should include the arrival time of the processes, the end time, and the average execution time. Essential. General 二、Readers-Writer Problem Implmentation 1、 A data set is shared among several concurrent processes: Readers – only read the data set; they do not perform any updates. Writers – can both read and write. 2、 Problem – allow multiple readers (at most 8) to read at the same time. Only one single writer can access the shared data at the same time. Essential. General 三、Program for Least Recently used Algorithm 1、 Create a page access sequence (page number range 0-18) using a random function. The sequence length is 54 and assume that the number of main memory frames allocated to the thread is 6, that is, M = 6. 2、 Implement the LRU algorithm for page replacement on the above access sequence. 3、 Output the page replacement sequence and the page fault rate. Essential. General Requirements 1、 For each experiment project, submit a design report and code. The code should be implemented in C++. The requirements are as follows: a) The content of the design report should include the design ideas and implementation. b) The results of the design report should include testing and running results (screenshots of screen outputs). c) The conclusion of the design report should summarize the problems encountered, the solutions and experiences during the implementation process.
时间: 2024-02-14 08:35:22 浏览: 130
OS_deadlock_scheduling_algorithms:调度算法(Round Robin,SJF,Priority,FCFS)和避免死锁算法(Banker's Algorithm)的实现
这是一个操作系统实现的项目,包含三个任务:模拟轮转算法进行进程调度、实现读者-写者问题、实现最近最少使用算法。第一项任务需要创建至少15个进程,并输出它们在轮转算法下的调度情况,包括到达时间、结束时间和平均执行时间等信息。第二项任务涉及到多个并发进程共享数据集,读者只读取数据集,而写者可以读写,需要实现允许多个读者同时读取,但只能有一个写者访问共享数据。第三项任务需要使用随机函数创建一个页面访问序列,长度为54,采用LRU算法进行页面替换,并输出页面替换序列和页面缺失率等信息。每个实验项目需要提交设计报告和代码,代码实现应为C++。设计报告的内容包括设计思路、实现细节、测试和运行结果等信息,同时需要总结实现过程中遇到的问题、解决方案和经验。
阅读全文