System Call IO

Standard IO relies on system IO for implementation. The concept of a file descriptor File IO operations: open, close, read, write, lseek Difference between File IO and Standard IO Efficiency issues with IO File sharing Atomic Operation Redirection implementation in program: dup, dup2 Sync: sync, fsync, fdatasync fcntl(); ioctl(); /dev/fd/direct ...

Posted by jeanlee411 on Thu, 03 Mar 2022 18:30:33 +0100

Sorting out javascript object knowledge points

Article reference https://www.w3school.com.cn/js/js_object_definition.asp JavaScript object definition In js, almost everything is an object: Booleans are objects (if defined with the new keyword) Numbers are objects (if defined with the new keyword) A string is an object (if defined with the new keyword) Dates are always objects Arithm ...

Posted by simshaun on Thu, 03 Mar 2022 08:25:11 +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

C language learning - day04

Learning source: station b -- Author: Little Turtle-- [C language] C language video tutorial(Lonely self-study - up master) Multidimensional arrays and pointers Pointer variables can point to either elements in a one-dimensional array or elements in a multi-dimensional array. For example: int a [3] [4] = {1,3,5,7}, {9,11,13,15}, {17,19,21,23 ...

Posted by sheilam on Thu, 03 Mar 2022 05:50:03 +0100

c language heap, stack, data segment, code segment and bss segment

Program memory allocation The memory occupied by a program compiled by c/C + + is divided into the following parts 1. Stack - automatically allocated and released by the compiler to store the parameter values of functions and the values of local variables. Its operation mode is similar to the stack in the data structure. 2. Heap - generally al ...

Posted by johnkperks on Wed, 02 Mar 2022 12:34:30 +0100

Basic overview of C language

C language is a process oriented and abstract general programming language, which is widely used in the bottom development. C language can compile and process low-level memory in a simple way. C language is an efficient programming language that produces only a small amount of machine language and can run without any running environment support ...

Posted by hip_hop_x on Tue, 01 Mar 2022 15:20:05 +0100

C language learning - day02

Learning source: station b -- Author: Little Turtle-- [C language] C language video tutorial(Lonely self-study - up master) Array practice Problem: input 9 integers from the keyboard (input three lines according to the form of Jiugong grid, and input three numbers in each line) and save them in the two-dimensional array. Output all the elemen ...

Posted by [uk]stuff on Tue, 01 Mar 2022 10:54:04 +0100

[C language] detailed explanation of file operation

I haven't updated the blog of C language learning for a long time. What I bring today is the knowledge points of the file part! ๐Ÿ˜‹ 1. Why do I need documents? Previously learned the code implementation of the address book, which can add and delete contacts in the address book. However, the address book is destroyed when your exe file is c ...

Posted by George W. Bush on Tue, 01 Mar 2022 06:49:14 +0100

C study notes

C Primer Plus (6th Edition) Chinese version Chapter 1 initial C language Compiler: translate high-level language into digital instruction code (machine language) Compilation: gcc source code c -o executable code exe . c: indicates the source code file . exe: executable code getchar(): read one character Chapter 2 overview of C language ...

Posted by pgrevents on Tue, 01 Mar 2022 06:10:13 +0100

C language to achieve mine sweeping (detailed explanation)

๐ŸŒŸ What is minesweeping Mine clearance refers to the search and clearance of mines, mines and other explosives, which is usually carried out in the areas occupied and recovered by our own side. The purpose of mine clearance is to ensure the freedom of movement of the army and the safety of residents' lives and property, and restore normal prod ...

Posted by Porkie on Tue, 01 Mar 2022 00:12:27 +0100