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
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
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
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
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
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
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 ...
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 ...
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
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