Experiment 7 Simulation and implementation of disk scheduling algorithm

1. Experimental purpose (1) Understand the disk structure and how the data on the disk is organized. (2) Master the calculation method of disk access time. (3) Master common disk scheduling algorithms and their related characteristics. 2. Basic knowledge and principle of experiment (1) Organization of disk data Each physical record on the di ...

Posted by gfX on Tue, 21 Dec 2021 16:55:48 +0100

Network management of [Linux learning] practical series

Network management of [Linux learning] practical series Let's start with some simple and common ones, but note that the simple and common ones should also be used skillfully ping As we all know, ping is used to test whether a host can communicate with each other. The output of a ping command is as follows: root@***:~# ping 127.0.0.1 PING 1 ...

Posted by Myss on Sat, 18 Dec 2021 22:37:25 +0100

Synchronization mutually exclusive issues such as pv primitives, producer-consumer, etc.

1. Description of the problem: A group of producer processes and a group of consumer processes share a buffer with an initial empty size of n. Only when the buffer is not full, the producer can put the message into the buffer, otherwise he must wait; Consumers can only pull messages from a buffer when it is not empty, or they must wait. Since a ...

Posted by nebb on Sat, 18 Dec 2021 18:08:16 +0100

School Online - Tsinghua University - operating system experiment Lab2

Exercise 0: fill in existing experiments This experiment relies on Experiment 1. Please fill in the code of Experiment 1 you did in the corresponding part with the comment "LAB1" in the code of this experiment. Tip: diff and patch tools can be used for semi-automatic merging, or some graphical comparison / merge tools can be used for ...

Posted by Lefu on Wed, 15 Dec 2021 08:06:54 +0100

An article to understand linux users and user groups

introduce linux is a multi-user system, which arranges corresponding permissions for each user, so as to better manage files. For example, a user assigns a class of files, so that this class of files can only allow specific users to carry out sensitive operations, so as to prevent other files from being affected and the system from running ...

Posted by jandante@telenet.be on Sun, 12 Dec 2021 21:04:59 +0100

Tsinghua operating system experiment ucore_lab3

lab3 Exercise 0: fill in existing experiments Files to be modified: default_pmm.c: static struct Page *default_alloc_pages(size_t n) { assert(n > 0); if (n > nr_free) { //If the total size of all free pages is not enough, NULL is returned directly return NULL; } list_entry_t *le, *len; le = &free_list; ...

Posted by xentrix on Sun, 12 Dec 2021 04:35:28 +0100

Experiment 3 virtual storage management (C + + implementation of OPT, FIFO, LRU, LFU and NUR algorithm)

Experiment 3 virtual storage management Experimental properties Design Recommended class hours 4 class hours Experimental purpose One of the main functions of storage management is to allocate space reasonably. Request paging storage management is a common virtual storage management technology. The purpose of this experiment is to simula ...

Posted by Sgarissta on Sun, 12 Dec 2021 02:07:31 +0100

How to schedule multiple processes?

How to schedule multiple processes Why do I need multi process scheduling Let's first find out the reason for multi process scheduling. Let me summarize it. First, the CPU can only run one process at a time, and the number of CPUs is always less than the number of processes. This requires that multiple processes share a CPU, and each proc ...

Posted by merrittj on Tue, 07 Dec 2021 14:15:42 +0100

[xv6 source code snooping] page table

prefaceThe default reader has a basic understanding of the structure of the three-level page table;All of the following contents can be found in the xv6 book, experimental instructions and xv6 source code;When you find errors or improvements, please don't save your keyboard.1, Preparatory work1. Kernel memory layoutOn the left is the virtual me ...

Posted by stefandv on Tue, 23 Nov 2021 21:14:21 +0100

Python uses a variety of methods to determine if an absolute path () ω•`) o

Python determines if the path is absolute () ω•`) o 1. What is absolute path and relative path 🍌 Absolute path: An absolute path, also known as a full path, is a path that points to a fixed location in the file system and does not change based on the current working directory. To do this, it must include the root directory ...

Posted by Chesso on Tue, 23 Nov 2021 19:02:59 +0100