1, Overview of producer consumer issues
Description: two or more threads share the same buffer. One or more threads as a "producer" will constantly add data to the buffer, and the other or more threads as a "consumer" will take data from the buffer. Note the following:
Producers and consumers must use buffers that ar ...
Posted on Sun, 05 Dec 2021 13:33:42 -0500 by gingerboy101
Note: to view the full text, please follow the author or go to: https://yuhan2001.github.io/2021/11/17/%E5%AE%9E%E9%AA%8C%E4%B8%80%E4%B8%AD%E6%96%AD%E5%A4%84%E7%90%86/
Experiment 1 interrupt processing
During the working process of the computer system, if an interrupt event occurs, the hardware records it in the interrupt ...
Posted on Sat, 04 Dec 2021 13:51:52 -0500 by areric
this paper implements four disk scheduling algorithms FCFS/SSTF/SCAN/CSCAN in C language. It provides manual input of track number and random generation of track number. The output is the track number accessed at each step, the moving distance at each step and the average moving distance. in addition to the consiste ...
Posted on Fri, 03 Dec 2021 15:12:18 -0500 by Archy
Experiment 2 process synchronization 1, Purpose of the experiment: Master basic synchronization algorithms and understand the essence of classical process synchronization problems; Learn to use the process synchronization mechanism of Linux and master the use methods of relevant API s; Can use the semaphore mechanism and adopt a variety of sync ...
Posted on Fri, 03 Dec 2021 09:10:25 -0500 by climbjm
Experiment 1 design and implementation of process scheduling algorithm dynamic priority plus time slice rotation method for process scheduling 1. Content: design a simple process scheduling algorithm to simulate the process scheduling process in OS; 2. Requirements: ① The number of processes shall not be less than 5; ② There are three process s ...
Posted on Tue, 30 Nov 2021 05:42:07 -0500 by Codewarrior123
here , the format of the library's bookshelf, that is, the file system on the hard disk, has been built. Now we also need a library management and borrowing system, that is, the file management module.
If a process wants to write data into the file system, it needs the cooperation of many layers of components:
In the application layer, when ...
Posted on Sun, 28 Nov 2021 01:17:35 -0500 by trinitywave
Lab 9: file system
Lab Guidance: https://pdos.csail.mit.edu/6.828/2020/labs/fs.htmlLab Code: https://github.com/VastRock-Huang/xv6-labs-2020/tree/fs
Large files (moderate)
inode structure to realize double indirect block index: the first 11 elements of IP - > addrs  are direct blocks, the 12th element is a single indirect b ...
1, Experiment name
Experiment (I) multi-channel program, process and time-sharing system simulation
2, Experimental purpose
Deepen the understanding of process management in multi-channel system, understand various states of processes and their conversion process, the setting of time slice in time-sharing system and the scheduling proces ...
Posted on Thu, 18 Nov 2021 19:09:37 -0500 by JeDi58
(operating system) design a processor scheduling program according to the priority number scheduling algorithm.
(Tip: the code is for reference only. If there are any errors, please correct them. The comments are just written casually and record the thinking process. If you can't understand your own understanding, you csdn, don't ask others. I ...
Posted on Wed, 17 Nov 2021 10:07:57 -0500 by leafer