Classic of operating system | producer and consumer problems
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
C + + programming to realize analog interrupt processing
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
Experimental topic
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
[operating system disk scheduling algorithm] OS experiment C language code to realize FCFS/SSTF/SCAN/CSCAN
preface
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
Operating system -- process synchronization
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
Operating system experiment -- process programming related experiment
catalogue
1, Experiment content:
2, Experimental results:
3, Experimental process:
three point one Basic implementation
3.1.1 Basic code
3 ...
Posted on Wed, 01 Dec 2021 01:26:54 -0500 by psionicwrath
Experiment 1 design and implementation of process scheduling algorithm dynamic priority plus time slice rotation method for process scheduling
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
linux operating system: virtual file system. File management system is needed when there are many files
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
[MIT 6.S081] Lab 9: file system
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)
main points
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 ...
Posted on Fri, 19 Nov 2021 13:59:34 -0500 by anfo
Experimental time slice rotation scheduling algorithm (Java)
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
Design a processor scheduling program based on priority scheduling algorithm.
(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