Several basic knowledge points of thread scheduling
When multi-threaded concurrent execution, many students do not know what problems will be caused by the randomness of scheduling. It is necessary to know that if access to critical resources is not locked, it will lead to some emergencies or even deadlocks.
Regarding thread scheduling, you nee ...
Posted by Adrianphp on Tue, 10 May 2022 04:36:15 +0300
A view of linux server performance
1.1 cpu performance view
1. View the number of physical CPUs:
cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l
2. View the number of core s in each physical cpu:
cat /proc/cpuinfo |grep "cpu cores"|wc -l
3. Number of logical CPUs:
cat /proc/cpuinfo |grep "processor"|wc -l
Number of physical CPU ...
Install the latest version of docker, change the docker installation location, save the image data path, and configure the image accelerator.
According to your own platform and environment, select the corresponding version to download and deploy, here is the latest official address.
click to enter
There is nothi ...
Posted by cainy1982 on Mon, 09 May 2022 13:02:52 +0300
For the Ubuntu system, the sources of different versions are different, and each version has its own dedicated source. And for the same distribution of Ubuntu, its sources are distributed on servers all over the world. The official source server used by Ubuntu by default is in Europe, and the access speed from China is very slow. Ali, NetEase ...
Posted by vickyjackson on Mon, 09 May 2022 12:22:20 +0300
1, Build environment
Install the httpd package.
systemctl stop firewalld //Stop firewall
setenforce 0 //Close selinux
mount /dev/sr0 /mnt //Mount mnt to local CD
dnf repolist //Detection after mounting the CD
vim /etc/yum.repo.d/base.repo //Import download source from local
Posted by silentmajority3 on Mon, 09 May 2022 11:56:12 +0300
Download the binary version of leanote.
Import initial data.
Configure # leanote.
1. Download the binary version of leanote
Download the latest binary version of leanote here.
Suppose you download the file to the / home/user1 ， directory and unzip the file to generate the ， lean ...
Posted by yogicasey on Mon, 09 May 2022 07:43:12 +0300
lvs (linux Virtual Server), a linux virtual server, is a virtual four layer switch cluster system. It realizes user request forwarding according to the target address and target port. It does not generate traffic and only does user request forwarding. At present, it is the cluster system with the best load balancing performa ...
Posted by CowGuy on Mon, 09 May 2022 02:54:10 +0300
1.CentOS Docker installation
Docker supports the following CentOS versions:
CentOS 7 (64-bit)
CentOS 6.5 (64 bit) or later
Currently, only the kernel in the release version of CentOS supports Docker. Docker runs on CentOS 7. The system is required to be 64 bit and the system kernel version is more than 3.10. Docker ru ...
Posted by timtom3 on Mon, 09 May 2022 02:34:11 +0300
I Introduction to Tomcat
1.1 introduction to Tomcat
Free, open source Web application server
The Apache Software Foundation is a core project of the Jakarta project
It is jointly developed by Apache, Sun and some companies and individuals
It is deeply loved by Java lovers and recognized by some software developers It is a popular Web applica ...
Posted by DiceyJono on Mon, 09 May 2022 01:29:50 +0300
Linux network devices veth pair and netns
Of course, the implementation of virtual network topology is inseparable from the participation of virtual network devices. Today we will introduce the network devices veth pair and netns on Linux.
Vet pair virtual network interface
veth pari is a virtual network device interface that appears in pairs. ...
Posted by joliocesar on Sun, 08 May 2022 22:36:42 +0300