Linux system programming - (pthread) thread use cases (separating properties, cleaning functions, etc.)
This article introduces the creation and basic use cases of threads under Linux, mainly case code; The related functions have been introduced in detail in the previous article.
1. Case code: thread creation
The following code demonstrates how to create a thread. You need to add - lpthread when compiling
Function prototype:
#include <pthr ...
Added by davser on Sun, 09 Jan 2022 16:26:58 +0200
Linux basic commands
1, Class notes:
su - meaning and home directory meaning?
When switching users, the configuration information of the user's home directory will be called / loaded. For example, if a command is configured for the user alone, only the user will recognize the command, and other users cannot.
Relative path and absolute path
St ...
Added by Craig_H on Sat, 08 Jan 2022 22:59:53 +0200
[linux] manually install nginx
Installation and compilation platform
The Ubuntu platform compilation environment can use the following instructions
apt-get install build-essential
apt-get install libtool
centos uses the following
yum -y install gcc automake autoconf libtool make
Install g + +:
yum install gcc gcc-c++
Generally, we need to install PCRE and zlib firs ...
Added by Arez on Sat, 08 Jan 2022 19:11:39 +0200
Linux kernel version 4.14 - pinctrl subsystem: pinctrl subsystem (core)
catalogue
1, Foreword
2, File list of pin control subsystem
2.1 source file list
2.2} and other kernel module interface header files
2.3 Low level pin controller driver interface
III. software framework diagram of pin control subsystem
3.1 function and Interface Overview
3.2 interface relationship between pin control subsystem and other ...
Added by philspliff on Sat, 08 Jan 2022 12:59:09 +0200
Update summary of openssl, cmake and boost under linux
introduction
OpenSSL is a fully functional software library, which contains open source implementations of transport layer security (TLS) and secure socket layer (SSL) protocols to protect information transmitted through computer networks. CMake is a cross platform build tool, which can describe the compilation process of all platforms with si ...
Added by andco on Sat, 08 Jan 2022 11:21:19 +0200
sersync+rsync deployment and use
Experimental environment: server: 192.168.91.155, 192.168.91.158 client: 192.168.91.152 Objective: to synchronize the files in the specified directory () of clinet to the specified directory () on the server side Host operating system environment: centos 1.10 (rsync is installed by default)
1. Train of thought
rsync + inotify tools calls rsyn ...
Added by Shadow Hatake on Sat, 08 Jan 2022 09:53:47 +0200
[Java] Redis explanation
Crazy God video address
https://www.bilibili.com/video/BV1S54y1R7SB
1,NoSQL
1.1 why use Nosql
Have some chicken soup first
We are now in 2020, in the era of big data;The general database of big data cannot be analyzed!Force yourself to study! Only continuous learning! This is the only law to survive in this society!Study or for yo ...
Added by p0pb0b on Sat, 08 Jan 2022 07:13:51 +0200
Linux learning basics chapter Linux basic permissions
Authority meaning
We all know that using ls -l can view file or directory information, including file permissions, such as the permission "lrwxrwxrwx." of "/ bin" below, These eleven bits are usually called permission bits, and the last "." It was added after RedHat 6, so what is the meaning of these eleven ex ...
Added by zeberdeee on Sat, 08 Jan 2022 06:52:07 +0200
Setup of NFS Server
NFS Server
Introduction to NFS Server
NFS (Network File System) is one of the file systems supported by FreeBSD, which allows computers in the network (different computers, different operating systems) to share resources through TCP/IP networks, mainly on unix series operating systems. In NFS applications, client applications of local NFS can ...
Added by joe2 on Thu, 06 Jan 2022 19:59:03 +0200
[Niuke C + + server project learning] Day15 - Preparation of thread pool class
Project learning address: [ niuke.com C + + server project learning ]
It took three hours to write the thread pool class. It was actually tested and can run normally. The performance test has not been done yet. I don't know how fast it can be compared with the traditional [immediate creation and immediate destruction] mechanism.
I still ste ...
Added by jadebabe on Thu, 06 Jan 2022 18:53:23 +0200