Linux - directory structure

Reprint and: Linux system directory structure | rookie tutorial The file directory structure is a tree structure starting from '/'! FHS (File System Hierarchy Standard); 1, Four interactive forms of directory Shareable, which can be shared to the directory used by other systems;unshared, device files running on your own mac ...

Added by sportryd on Sun, 27 Feb 2022 15:17:14 +0200

[OS command injection 01] common functions that may cause OS command injection (system, exec, passthru, popen and backquote structure)

1. Overview of OS command injection Background: when programmers use script language (such as PHP) to develop applications, script language development is very fast, concise and convenient, but it is also accompanied by some problems, such as slow speed, unable to touch the bottom of the system, etc. When developing applications, especiall ...

Added by jonnym00 on Sun, 27 Feb 2022 06:35:42 +0200

Compile the static file system test tool [FIO] and run it in QEMU

Compiling static file system testing tools can test your file system in QEMU environment without worrying about machine crash 🤭, For how to build a kernel development environment, please refer to the front article of the blogger: Running with VSCode + QEMU can visualize the Debug NOVA file system. Today is the static compilation of ...

Added by jambroo on Mon, 21 Feb 2022 08:45:04 +0200

Linux file input / output stream

File open, file write, file read, file close, file cursor lseek, file create The general process of a file is to open or create a document - edit the document - save the document - close the document. The api (Application Programming Interface) provided by liunx file operation includes open, write, read, close, lseek, create, etc. File op ...

Added by danielholmes85 on Sun, 20 Feb 2022 09:19:05 +0200

Mit6.S081 experiment 11 networking

1, Experimental preparation In this experiment, you will create a network interface card( network interface card)Write one xv6 Device driver. Get this experiment xv6 Source code, and check out net Branch: git fetch,git checkout net,make clean 2, networking 1. Background Before writing code, you will find: revisit xv6 book "Chapter ...

Added by biffjo on Sun, 20 Feb 2022 04:53:15 +0200

ucosii from 0 learns what is the critical zone

content validity What is the critical zone? Why are three entry modes defined, but only the first mode can be found in the code? We will discuss the feasibility of the three methods combined with the knowledge about the run-time stack of c language. text In the first empty ucosii project that can deceive the compiler, we are in os_cpu.h def ...

Added by Axeia on Fri, 18 Feb 2022 13:28:14 +0200

OS Experiment 4 of Harbin Institute of technology -- tracking and statistics of process running track

Tracking and statistics of process running track The whole process from the creation of a process (call fork() under Linux) to the end is the life cycle of the process. The running track of the process in its life cycle is actually represented by multiple switching of the process state. For example, after the process is created, it will become ...

Added by gsaldutti on Fri, 18 Feb 2022 12:40:46 +0200

Explain Linux threads in detail

concept A process is the smallest resource allocation unit of the operating system, while a thread is the smallest scheduling unit of the operating system. In other words, a program will create a process when it is running. The process has at least one thread, and the operating system schedules this thread to operate when scheduling. There ...

Added by Norsk.Firefox on Fri, 18 Feb 2022 08:07:38 +0200

Operating system experiment 4 of Software College of Shandong University -- Process Synchronization Experiment

1, Experimental time Thursday, May 6, 2021, week 10 2, Experimental purpose Deepen the understanding of the concepts of concurrent collaborative process synchronization and mutual exclusion, observe and experience the effects of concurrent process synchronization and mutual exclusion, and analyze and study the practical solutions to the ...

Added by deadonarrival on Thu, 17 Feb 2022 22:10:48 +0200

Grading with Python

We're going to start learning how to grade. To realize this function, you have to learn five new knowledge points, namely OS path. exists(),os.mkdir(), arithmetic operators / /,% and cn2an an2cn() In this function, we need to split the [general sales table. xlsx] into [level x sales table. xlsx] according to the sales ranking and place it in ...

Added by Panz3r on Wed, 16 Feb 2022 02:48:18 +0200