Use the smart pointer STD:: shared? PTR STD:: make? Shared to apply for general memory, including examples

I. Introduction First of all, the type of shared uuptr is a smart pointer in the C + + standard library, which is designed for the scenario that multiple owners may have to manage the life cycle of objects in memory. After you initialize a shared uuptr, you can copy it, pass it in function parameters ...

Posted on Fri, 21 Feb 2020 01:43:18 -0500 by John Canyon

Installation of centos, ubuntu, windows 2012 system -- Summary of problems

1. centos thin edition cannot be connected to the network after installation: Enter / etc / sysconfig / network scripts Modify ifcfg-ens33 Change ONBOOT to yes Then restart 2. centos modify host name 3. ubuntu source change 1> Back up the original source file source.list Open the terminal on the desk ...

Posted on Sun, 16 Feb 2020 04:53:31 -0500 by -entropyman

Thread creation and thread nature

In the last section, I learned the process creation in detail, and learned the difference between fork and vfork through examples. In this section, we will learn how to create threads, which only involve the application layer threads. We will learn how to create kernel threads later. Creation of app ...

Posted on Fri, 14 Feb 2020 05:28:44 -0500 by Charlie9809

Learning diary of slam beginners

Learning SLAM for the first time, because one note cannot be used in ubuntu, I decided to use CSDN to record my learning notes. The purpose of publishing is to share and exchange progress with you. Most of the notes come from the experience of the big guys. I will also attach a link. If there is infring ...

Posted on Fri, 14 Feb 2020 02:00:26 -0500 by grantf

Ballerina: Hello World

Preface Ballerina is a fully open source compile time strong type language with the vision of making it easy for programmers in the cloud native era to write the software they want Open source address: https://github.com/ballerina-platform/ballerina-lang Example Download the package of corresponding platform for installation https://ballerina.i ...

Posted on Wed, 12 Feb 2020 03:50:00 -0500 by TwistedLogix

Linux driver easy to learn notes

PC operating system: Ubuntu 16.04 LTS Compiler: arm poky Linux gnueabi GCC 4.9.1 Based on the i.mx6 platform, the Linux driver module has been modified for some time, in which a lot of information is checked intermittently, and it feels that the knowledge is not so coherent, so it's time to start from t ...

Posted on Tue, 11 Feb 2020 05:10:49 -0500 by crislewis

Record a production accident -- disk full

Written in front Today, in the production environment running on Alibaba cloud ECS, all of a sudden, the access is abnormal and the interface reports errors. However, the company has no professional operation and maintenance personnel, so it can only solve the problem on its own. Troubleshooting On the surface, the database reports errors first ...

Posted on Mon, 10 Feb 2020 07:52:34 -0500 by Kitara

[LVM] pit mounted in LVM partition after system reassembly

  The partition of the original Ubuntu 12.04 server version is as follows. Disk configuration  The glibc upgrade causes the system to restart and cannot be started. After the system is repaired, it is still wrong. The system is then refitted. In the reassembly project, the original ext4 partition is formatted and LVM is unc ...

Posted on Sun, 09 Feb 2020 12:08:16 -0500 by Distant_storm

Optimization of network card of Linux server

Generally, the network card interrupt of Linux is handled by a CPU core. In the scenario of high traffic, there will be some weird situations (the network card has not reached the bottleneck, but the packet loss occurs) At this time, we'd better see if the network card interrupt is lack of tuning. Optimization 3 points: network card multi qu ...

Posted on Fri, 07 Feb 2020 12:42:22 -0500 by etsauer

Lesson 49 of C + + -- the concept and significance of polymorphism

This paper studies the C + + course of Mr. Tang zuolin from Ditai Software Institute When the function rewriting meets the assignment compatibility with the analysis of the last example in the above section, the compiler will call the member function of the pointer or reference type class directly for ...

Posted on Tue, 04 Feb 2020 23:39:52 -0500 by jl