这是自己编写的时间片轮转程序,该程序能够实现时间片轮转算法的模拟,能够计算各个进程的周转时间,输出各个进程的执行过程等。
1
session1 【Objective and Requirement】 Objective: Be familiar with the creation of process and thread on Windows. Requirement: Sub Task 1: Create a console application, "child", which keeps printing out "The child is talking at [system time]" (in a loop, one per 1s). Sub Task 2: Create another console application, "parent". It create a child process to execute “child”. The "parent" process keeps printing out "The parent is talking at [system time]". (one per 1s) Execute "parent" and explain the output you see. Sub Task 3: Create a "winPS" program which can output information about all the running processes. Try to output details about each process, such as PID, executable file name and path, etc. Sub Task 4: In the "mainThread" program, use "CreateThread" to create a child thread. Both the main thread and the child thread keep printing out "[ThreadID] + [System time]". session2 Objective: Create "ps" and "kill" commands on Windows. Requirement: Sub Task 1: On Linux/Unix there are a "ps" command and a "kill" command. The "ps" command can list information about all the running processes. The "kill" command can terminate processes. Based on the tasks finished in Session 1, create "ps" and "kill" commands on Windows. Tips: using "TerminateProcess" to "kill" a process. session3 Objective: Learn how to use semaphore to solve IPC problems. Requirement: Task 3.1. Sleeping barber Use semaphores to solve the problem of sleeping barber. Task 3.2. Reader & Writer Use semaphores to solve the reader and writer problem, with the readers (and writers) have higher priority. session4 Title: Upgrade Linux/Unix commands Problem: Write a program "supershell" that takes another command as an argument and executes that command. For instance, executing: “./supershell cat /usr/greg/readme" would invoke the cat command on the file /usr/greg/readme. After execution of the specified command has completed, "supershell" should display statistics that show some of the system resources the co
1
代码主体非本人原创,主要内容来源于:https://blog.csdn.net/houchaoqun_xmu/article/details/55541715,由于原代码测试中有些问题,因此我经过修改后上传,此代码VS2010下可直接使用,优化了原代码中当物理块数较大因此在前物理块数个页面中即有命中时的页面置换失常现象。可以实现LRU、OPT、FIFO算法打印置换情况并计算缺页数、缺页率。
2021-11-17 23:03:55 4.33MB 操作系统 页面置换 FIFIO OPT
1
操作系统实验 页面置换模拟系统 可详细实现页面置换的3个算法 c#编写 .NET平台下运行
2021-11-17 22:07:24 50KB 操作系统实验 页面置换模拟系统
1
操作系统六大实验,报告文档,格式规范,附加相关c语言源码。 1、熟悉Linux下的基本操作 2、进程的创建、控制、通信 3、消息的创建,发送和接收,通道、共享存储区 4、分页内存和内存替换算法 5、为linux系统设计一个简单的二级文件系统
1
nachos实验报告 信号量实验,拓展文件系统,优先级的线程调度和多用户程序等操作系统课程设计
2021-11-15 14:43:45 864KB nachos 报告 操作系统 山大
1
包括步骤和截图,提交的话请修改截图和文件夹名,步骤非常详细,可以自己对着做一遍,有问题可以私信
2021-11-14 22:19:32 870KB openEuler 操作系统实验 西工大
1
GeekOS操作系统的project3,对应于实验指导书上的第十章和第十一章,完成了进程调度优化和进程的同步与互斥。 添加了bochsrc文件,可直接在build中使用bochs运行
2021-11-13 21:34:24 558KB 操作系统实验 GeekOS
1
完整的操作系统实验,包括可执行程序与源代码,还有完整详细的实验报告。相信对你一定有参考价值的。
2021-11-13 00:36:45 542KB 2011 操作系统实验 源代码 报告
1