Hongmeng kernel source code analysis (special process chapter) | dragon born dragon, phoenix born chicken, mouse born child can make holes | 100 blog analysis HarmonyOS source code | v46 01

Million Chinese character annotation > > intensive reading kernel source code, Chinese annotation analysis, deep foundation engineering, permanent brain memory, and four code warehouses are updated synchronously every day< gitee | github | csdn | coding > One hundred blog Analysis > > story telling kernel, question and answer ...

Posted by dragin33 on Wed, 09 Mar 2022 11:09:34 +0100

ucore_lab2 experimental report

After the experiment of lab1 is completed, start lab2, which mainly realizes memory allocation Purpose of the experiment: Understand the translation mechanism based on segment page memory addressUnderstand the establishment and use of page tableUnderstand how to manage physical memory In lab1, we use segment management, and the addresses inv ...

Posted by discobean on Mon, 07 Mar 2022 11:06:56 +0100

Operating system experiment -- process scheduling

Implementation of process scheduling algorithm Summary: The process scheduling algorithm is realized, including FCFS (first in first out), SPF (short process priority), HRRF (highest response ratio priority method) and HPF (priority method). A process management simulation system that allows n processes to run concurrently is designed. The syst ...

Posted by kennethl on Mon, 07 Mar 2022 05:54:46 +0100

UC growth path 9

Review: UC growth path 1 UC growth path 2 UC growth path 3 UC growth path 4 UC growth path 5 UC growth path 6 UC growth path 7 UC growth path 8 1, Registration of last words function atexit(3) review UC growth path 8on_exit(3) #include <stdlib.h> int on_exit(void (*function)(int , void *), void *arg); //Function: register the last word ...

Posted by kapishi on Fri, 04 Mar 2022 05:06:14 +0100

Write Linux 0.0 from zero 11 - Chapter 2 kernel initialization

Programming environment: Ubuntu Kylin 16.04 Code warehouse: https://gitee.com/AprilSloan/linux0.11-project linux0.11 source code download (it cannot be compiled directly and needs to be modified) 1. Add kernel After entering the kernel, it does not immediately enter the main function. In the previous chapter, gdt is only set temporarily. In ...

Posted by mitchell on Thu, 03 Mar 2022 19:02:58 +0100

Ten common Python automation operations

This article is taken from WeChat official account GitPython: Ten common Python automation operations . In case of infringement, the contact must be deleted. 1. OS module Import: import os 1. Traverse the folder The premise of batch operation is to traverse the folder, OS Walk traverses the folder and generates three parameters: Current ...

Posted by sig on Thu, 03 Mar 2022 14:42:47 +0100

Operating system: first come first serve algorithm and C language implementation of highest priority number first

I've been reviewing the operating system recently, and I have the following knowledge points: 1) Process scheduling algorithm: it adopts os scheduling algorithm (i.e. assigning the processor to the process with the highest priority) and first come first serve algorithm. 2) Each process is represented by a process control block (PCB). The proce ...

Posted by unmash on Thu, 03 Mar 2022 06:42:47 +0100

Linux common commands

1, Basic command 1.1. Startup and login Boot will start many programs. They are called "service s" in Windows and "daemon s" in Linux. After successful startup, the text login interface will be displayed, which will not be displayed when entering the password. Generally speaking, there are three ways for users to log i ...

Posted by nickholt1972 on Fri, 18 Feb 2022 15:32:48 +0100

Linux memory management

Linux as a general hardware kernel, how to achieve general and efficient memory management. In the previous article on Linux memory segmentation and paging, we mainly explain that the Linux kernel carries out the abstract mapping of physical address, logical address and linear address, which is like dividing territory for families in a wilderne ...

Posted by Kane250 on Fri, 18 Feb 2022 07:00:02 +0100

Interview site -- trap of conditional variables, producer and consumer model

I recommend a free open course of zero sound college. Personally, I think the teacher speaks well. I share it with you: Linux, Nginx, ZeroMQ, MySQL, Redis, fastdfs, MongoDB, ZK, streaming media, CDN, P2P, K8S, Docker, TCP/IP, collaboration, DPDK and other technical contents, learn immediately 1, Use of conditional variables API s related to c ...

Posted by dajawu on Wed, 16 Feb 2022 16:39:36 +0100