Essays on UNP Volume II
I. overview
there are two branches of interprocess communication mentioned in this book, posix and system V. most linux systems today support these two branches. There are obvious differences between the interprocess communication interfaces provided by posix and system V, which are described in Chapter 2 and Chapter 3.
ther ...
Posted on Thu, 11 Nov 2021 21:13:54 -0500 by andycastle
System calls to Linux operating files
System call to manipulate files
1. System calls related to file operations open() read() write() close()
1)open() int open(const char* pathname, int flags);// Used to open an existing file int open(const char* pathname, int flags,mode_t mode);// Used to create a new file and set access permissions Parameter introduction:
pathname: the path a ...
Posted on Mon, 01 Nov 2021 11:50:40 -0400 by coldfused
Learning notes of C programming language -- UNIX system interface
UNiX system
UNIX operating system provides services through a series of system calls. These system calls are actually functions in the operating system, which can be called by user programs.
File descriptor
In UNIX operating system, all peripheral devices (including keyboard and display) are regarded as files in the file system. Therefor ...
Posted on Mon, 01 Nov 2021 08:05:21 -0400 by rostros
Linux foundation Chapter 6 process management
1. Process
Definition of process
The program is a static code file; Process refers to the form of program running time
A process is a copy of a program(copy Program to memory, equivalent to copy)
Processes have a life cycle
Preparation period: prepare resources(It is similar to "take a broom" before "cleaning the classroom ...
Posted on Fri, 22 Oct 2021 08:13:16 -0400 by shinstar
Notes on advanced programming in UNIX Environment Chapter 4 - files and directories
1. Functions stat, fstat, fstatat and lstat
Returns the specified file information
int stat(const char *pathname, struct stat *statbuf);
int fstat(int fd, struct stat *statbuf);
int lstat(const char *pathname, struct stat *statbuf);
int fstatat(int dirfd, const char *pathname, struct stat *statbuf, int flags);
The stat function returns the ...
Posted on Thu, 21 Oct 2021 10:38:58 -0400 by 90Nz0
< VI > process management in Linux 2021-10-10
1, Process definition
Definition of process: The program is a static code file Process refers to the form of program running time A process is a copy of a program The process has a life cycle (preparation period, operation period, termination period)
Process & thread: A process is the smallest unit of resource invocation
A thread is the ...
Posted on Wed, 20 Oct 2021 13:35:03 -0400 by sanch
[Computers and UNIX Assembly Principles_] - Experimentation Report 2 [ ⭐ Implementation of User Login Authenticator+Support for Backoff Function ⭐ )
✅
Log in!⌨️
Links to previous article: [Computers and UNIX Assembly Principles]-Example of Assembly Language Programming [Three Binary Conversions]. Next article link: 🚧 🚧 …
Zero. Preview of results
Note: This is the case when both the account (with echo) and password (without echo) are entered correctly. Other incor ...
Posted on Wed, 20 Oct 2021 12:11:59 -0400 by twinedev
Percona MySQL View Tables Not Accessed
It's really hard to find out if a table in an instance has access.(
A common method is to open a tcpdump or tshark persistent packet to filter suspected table names.(
However, if we were using MySQL from the Percona branch, this would be much easier.
Under Percona MySQL, we can open the userstat parameter and query the system statistics tabl ...
Posted on Sun, 28 Jun 2020 12:51:50 -0400 by Sno
Data mining -- common data preprocessing
0. Read and write data
(1) Read txt file
#Read txt and splice data
import pandas as pd
data=pd.read_table('1.txt', delimiter=',',dtype={'id':'int32','index':'int8'})
all=data.merge(data2,on='id',how='left').merge(data3,on=['id','index'],how='left')
(2) Read and save list file
Note: if the list i ...
Posted on Fri, 12 Jun 2020 02:41:25 -0400 by catalinus
[Linux command] Chapter 15 planning task (crontab) of "brother bird Linux foundation"
Chapter 15 planning tasks (crontab)
15.2 what is a planned task
Remind regularly or when the conditions are met.
15.1.1 types of Linux planned tasks: at, cron
Routine: matters to be done at regular intervals;
Unexpected: not after this time
Types of planned tasks:
At: can handle commands that ...
Posted on Fri, 12 Jun 2020 01:27:11 -0400 by antwown