Operating system experiment: disk scheduling (JAVA)
1, Experimental purpose
Disk is a high-speed, high-capacity, rotating and directly accessible storage device. As the auxiliary memory of computer system, it undertakes heavy input and output work. In modern computer system, there are often several input and output requirements requiring access to disk at the same time. The system can adopt a ...
Added by johnsiilver on Mon, 29 Nov 2021 21:07:25 +0200
linux operating system: pipeline, project handover mechanism
Principle of anonymous pipeline
The following system call is required to create a pipeline
int pipe(int fd[2])
Here, we create a pipe and return two file descriptors, which represent both ends of the pipe. One is the read descriptor fd[0] of the pipe and the other is the write descriptor fd[1] of the pipe
Let's look at how it is implement ...
Added by tnylsej on Mon, 29 Nov 2021 02:09:05 +0200
linux operating system: user mode memory mapping
In the previous sections, we learned how to organize virtual memory space and how to manage physical pages. Limitation we need some data structures to manage the two
mmap principle
Each process has a list vm_area_struct, which points to different memory blocks in the virtual address space. This code is called mmap
struct mm_struct {
struct ...
Added by kesmithjr on Fri, 26 Nov 2021 15:51:42 +0200
Deploy k8s cluster in kubedm mode, v1.19.1, and the whole process is super detailed
Deploying k8s clusters in kubedm mode
Official documents:
<https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/>
Remember to turn off the firewall and selinux. The number of cpu cores should be at least 2
Official documents for kubedm deploying k8s highly available clusters:
<https://kubernet ...
Added by mcdsoftware on Wed, 24 Nov 2021 23:18:58 +0200
MySQL Base_ 4_ Subquery
! Description: In the last 5 days, I have read the basic MySQL chapters of Master Kang of Shangxi Valley (forcing JVM) and shared some notes, mark, mark!
1. Subqueries
A subquery is a query whose statement is nested within another query statementUse Attention
Subqueries need to be enclosed in parenthesesPlace subqueries to the right of the ...
Added by Masterchief07 on Wed, 24 Nov 2021 20:39:31 +0200
How does the partner system allocate memory
How does the partner system allocate memory
Partner system
The partner system is derived from the Solaris Operating System of Sun company. It is an excellent physical memory page management algorithm on the Solaris Operating System. However, good things are always easy to be stolen or imitated by others, and the partner system has also be ...
Added by power3 on Tue, 23 Nov 2021 09:52:28 +0200
Operating system: dynamic unequal length storage resource allocation algorithm experiment
Partition allocation algorithm based on sequential search
In order to realize dynamic partition allocation, the free partitions in the system are usually linked into a chain. The allocation method based on sequential search is to search the free partitions on the free partition chain in turn to find a partition whose size can meet the requirem ...
Added by mediamind on Sun, 21 Nov 2021 21:04:02 +0200
7-2 Banker Algorithms--Request Resources (30 minutes) (Ideas + Details) Come Babies
First: Preface
This question requires knowledge of the security checking algorithm for the previous one, so it is strongly recommended that you look at the previous one first. 7-1 Banker Algorithm - Security Check (20 points)
2: Title
Enter N processes (N<=100) and M-class resources (M<=100), initialize the total number of resources, a ...
Added by patheticsam on Sun, 31 Oct 2021 20:00:45 +0200
FIFO pipeline
explain
Anonymous pipeline, which can only be used between processes with kinship, greatly limits the use of pipeline. The emergence of well-known pipeline breaks through this limitation. It can enable two unrelated processes to communicate with each other.
The pipeline can be indicated by a pathname and is visible in the file system. Aft ...
Added by audiodef on Sat, 30 Oct 2021 13:27:41 +0300
How to write a programming language yourself (first experiment in Unix system programming / U language interpretive language)
1. Experimental Requirements
1. Goals
Implement an interpretive language, Ulanguage, in C, so that it can be executed in the terminal Java and Python are explanatory languages that require an interpreter to interpret execution at execution time - interpret an instruction when you see it (advantages: cross-platform; disadvantages: ineffici ...
Added by neh on Wed, 27 Oct 2021 19:48:44 +0300