Detailed explanation of CSAPP experiment with Bomb Lab

preface Bob lab comes from the supporting experiment of "machine level representation of program" in Chapter 3 of "deep understanding of computer system" (CSAPP). The purpose of this experiment is to deduce the program execution content by disassembling the executable program, so as to correctlUTF-8...

Posted by lovelyvik293 on Mon, 24 May 2021 05:45:25 +0930

Thread and thread pool in concurrent programming

1. Thread Thread (English: thread) is the smallest unit that the operating system can schedule operations. It is included in the process and is the actual operation unit in the process. Thread is the smallest unit to schedule CPU resources. The thread model is divided into KLT model and ULT modUTF-8...

Posted by Shamrox on Fri, 28 May 2021 05:10:46 +0930

Deep understanding of computer system 8. Abnormal control flow

8.1 anomalies Exception: a sudden change in the control flow in response to some change in the state of the processor. Exception handling: In any case, when the processor detects an event, it will make an indirect procedure call through a jump table called exception table to a program speciallyUTF-8...

Posted by speedyslow on Sat, 29 May 2021 05:55:57 +0930

Operating system virtual memory management

Operating system virtual memory management [Objective] Through the simulation of several basic page replacement algorithms to realize request page storage management, we can understand the characteristics of virtual storage technology, master the basic ideas and implementation process of severaUTF-8...

Posted by rd2010 on Sat, 29 May 2021 07:44:45 +0930

Rough implementation of banker algorithm in JAVA

Operating environment win10 IDEA principle Baidu Encyclopedia original link We can think of the operating system as a banker. The resources managed by the operating system are equivalent to the funds managed by the banker. The process's request to allocate resources to the operating system is eUTF-8...

Posted by gman-03 on Fri, 04 Jun 2021 06:44:18 +0930

RTX thread communication -- thread flag

Thread Flags In a real application, we need to be able to communicate between threads in order to make an application useful. To this end, a typical RTOS supports several different communication objects which can be used to link the threads together to form a meaningful program. The CMSIS-RTOSUTF-8...

Posted by devangel on Fri, 11 Jun 2021 02:34:41 +0930

Source Code Resolution of Hongmen init Module

1 Introduction The init component handles the system service process startup process from the first user-state process loaded by the kernel to the first application startup. From the system startup process, init is located after the kernel s start and before the user program starts. user prograUTF-8...

Posted by pete_bisby on Mon, 14 Jun 2021 02:09:53 +0930

Linux calls fork wait exec

Read "Unix/Linux System Programming Chapter 3", and look up the information on the Internet, and summarize these system call functions. If there is anything wrong, please criticize and correct reference material 1. Some Unix/Linux process related vocabulary Process context: The context of a proUTF-8...

Posted by scialom on Mon, 14 Jun 2021 03:04:41 +0930

x86 assembly - 01 to write MBR, read the tutorial can be written with feet

1, Writing MBR The basic principle of displaying characters in real mode All graphics cards have their own memory, because it is located on the graphics card, so it is called video RAM (VRAM), referred to as video memory, and the contents to be displayed are written into the video memory in adUTF-8...

Posted by bradleybebad on Sat, 19 Jun 2021 02:19:27 +0930

ELF file architecture and file running process

File structure Look at the structure of a file ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Shared object file) Machine: Advanced Micro Devices X86-64 VeUTF-8...

Posted by tmed on Sat, 19 Jun 2021 06:45:16 +0930