The Execution Procedure of do_fork Function in Linux

introduce Linux provides several system calls to create and terminate processes, as well as to execute new programs. They are Fork, vfork, clone and exec, exit. Clone is used to create lightweight processes, and resources must be shared. Exc system calls to execute a new program, exit system calls to terminate processes. Whether it's fork, VF ...

Added by BrianM on Sun, 14 Jul 2019 20:48:54 +0300

Multithread Matrix Multiplication

Job Requirements: Multithread programming is used to realize matrix multiplication under Windows and Linux respectively. Analysis: Linux multi-threading and Windows multi-threading implementation principle is basically the same, but the API provided by the system is different. In fact, if the API provided by Windows is not applicable under ...

Added by wiccanwoman1103 on Sun, 14 Jul 2019 00:50:20 +0300

shell base-bash variable-numerical operation and operator

In the Linux shell, the type of the value of a variable is a string by default and cannot be directly numerically calculated. [root@localhost ~]# a=9 [root@localhost ~]# b=15 [root@localhost ~]# c=$a+$b [root@localhost ~]# echo $c 9+15 In order to perform numerical operations on variables, special methods are needed. 1. declare declares ...

Added by Webxplosion on Thu, 11 Jul 2019 03:57:24 +0300

Target Packing Compression Command for Linux

Preface: The tar command itself has no compression function. It just packages multiple files or directories into one file, and the size of the packaged files is larger than the sum of the original file sizes. This will waste our disk space, which is not what we want in the working environment. If you want to pack multiple files or directories ...

Added by xdracox on Wed, 10 Jul 2019 00:07:21 +0300

17.04.14 Doker-machine tool usage summary (1)

Reference resources:https://github.com/docker/mac...https://docs.docker.com/machi...http://lizhenliang.blog.51cto...https://www.oschina.net/news/...http://www.csdn.net/article/2... Summary Official overview of three points: Install and run Docker on Mac or Windows Provision and manage multiple remote Docker hosts Provision Swarm clustersIf you ...

Added by deed02392 on Tue, 09 Jul 2019 21:19:09 +0300

Linux Kernel Notes: epoll Implementation Principle

I. Explanation Kernel version for 4.4.10. This article is just a simple note for me to read the source code. If you want to understand the implementation of epoll, I strongly recommend the following article: The Implementation of epoll(1) The Implementation of epoll(2) The Implementation of epoll(3) The Implementation of epoll(4)   2. epoll_cre ...

Added by nawal on Tue, 09 Jul 2019 00:19:44 +0300

VIII. Detailed Service

1. Service and process priorities 1.1 What is a service? windows services: no interface, long-running applications in the background; android services: a component of the application, no interface activity, long-term running in the background; Process: It is the carrier of application running. The relationship between processes and appl ...

Added by nmal on Mon, 08 Jul 2019 23:00:19 +0300

traceroute Routing Tracking with Python and Capy

Catalog Author's Configuration Environment Need for support Step 1: Install scapy Step 2: Install Graphviz and Image Magick Step 3: Add environment variables Step 4: Testing Generate svg images Problems encountered and Solutions Author's Configuration Environm ...

Added by Lustre on Mon, 08 Jul 2019 21:32:12 +0300

Docker Introduction (1) - Warehouses, Containers, Mirrors

Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable container and then publish them to any popular Linux machine, as well as virtualization. Containers are completely sandboxed and do not have any interfaces with each other. The advent of Docker has allowed ...

Added by radhoo on Sun, 07 Jul 2019 04:55:51 +0300

Linux Block Device Driver (IV) - Data Structure and Related Operations of Block Devices

Memory is a linear structure, and Linux systems divide memory into pages. The largest page can be 64KB, but the current mainstream system pages are 4KB in size. Each page of data is encapsulated into a segment, which is represented by bio_vec. Multiple pages are encapsulated into segments, which are composed of an array of bio_vec elements, wh ...

Added by scottjcampbell on Sun, 07 Jul 2019 04:40:02 +0300