Linux fork system call

In Linux, the fork system call can be used to create a child process. The child process will inherit most of the properties of the parent process, and then the child process will call the exec cluster function to run other programs. Let's take a concrete example to illustrate the relationship between parent-child processes #include <stdio.h ...

Added by BioBob on Sun, 20 Feb 2022 19:25:49 +0200

Ubuntu/Linux Terraform oci one click script snapping up Oracle VM Standard. A1. Flex # 4 OCPU, 24 GB memory vps

Oracle's machine was blown up, so that the little partners could not open the free machine, so they wrote a script and robbed it on the server. When the resources came out, they could basically open it. This script uses Terraform to call API to execute tasks. The following is a brief description. Oracle ARM has been used by everyone for a wh ...

Added by adam87 on Sun, 20 Feb 2022 19:22:56 +0200

Greedy algorithm ----- LeetCode 321 maximum number of splices

Title Description Given two arrays of length m and N, the elements are composed of 0-9, representing the numbers on each bit of two natural numbers. Now select k (k < = m + n) numbers from the two arrays and splice them into a new number. The numbers taken from the same array are required to maintain their relative order in the origina ...

Added by sundru on Sun, 20 Feb 2022 19:15:15 +0200

Multithreaded notes

Multithreading Create thread There are three ways to create threads Inherit the Thread class and override the run methodImplement Runnable interfaceImplement Callable interface Inherit Thread class Inherit the Thread class and override the run method package Thread; public class MyThread extends Thread{ @Override public void run( ...

Added by pedrolopes10 on Sun, 20 Feb 2022 19:12:20 +0200

How should I configure the server after spending 288 for three years

preface The ECS that Alibaba cloud bought for 95 yuan is about to expire. It needs more than 1000 to renew. I thought there was nothing important on the server, so I took advantage of Tencent cloud discount and spent 288 to buy a three-year CVM. CVM is a cloud virtual machine. Let's call it a server for the time being. 1 core 2G, it seems tha ...

Added by dch27 on Sun, 20 Feb 2022 19:06:18 +0200

[day08~10] basic understanding of Java object-oriented

object-oriented The essence of object-oriented programming is to organize code in the form of classes and encapsulate data in the form of objects 1. Relationship between class and object Class is an abstract data type. It is the overall description / definition of a certain kind of transaction, but it can not represent a specific thing Pe ...

Added by bluejay002 on Sun, 20 Feb 2022 19:03:53 +0200

Get twice the result with half the effort: understanding and using Helm

What's Helm? Helm is the package manager of Kubernetes. Like package management tools such as yum and apt, helm can easily deploy the applications we want with one click. Writing Helm has three main goals: 1. Easily realize "from zero to Kubernetes"; 2. Provide a software package management system similar to the operating syste ...

Added by g7pwx on Sun, 20 Feb 2022 19:03:11 +0200

PXE efficient batch network installation and kickstat automatic installation

1, PXE 1. Principle and concept: The pre boot execution environment (PXE), also known as the pre execution environment, provides a mechanism for starting a computer using a Network Interface. This mechanism allows the computer to start without relying on the local data storage device (hard disk) or the locally installed operating system. Ser ...

Added by Sarok on Sun, 20 Feb 2022 19:02:45 +0200

Design mode - singleton mode

1, Definition of singleton mode Definition: ensure that there is only one instance of a class and provide the global access point of the instance. The advantage of this is: for some instances, only one global instance is enough. Using the singleton mode can avoid the frequent creation and destruction of a global class, which consumes system r ...

Added by SusanMoore on Sun, 20 Feb 2022 18:59:06 +0200

C + + memory management

  compare some differences between C and C + + definition categories to Stack as an example:    C language defines the stack is nothing more than defining a structure and then defining some functions. Its data and functions are separated. When operating data, you need to call the initialization function after defining the t ...

Added by venradio on Sun, 20 Feb 2022 18:48:37 +0200