VSCode runs c++ program (operation + detailed explanation + json file configuration detailed explanation)

Preface: Because the quality of online tutorials varies, I felt very confused when I first came into contact with this thing. I hereby write this blog to help my friends solve the problem. Table of Contents 1. Operation details 1Download VSCode code editor 2Install C/C++ extension 3Install the MinGW-w64 compiler 4Add path 5 Test whether […]

Four process scheduling algorithms for operating systems (c language)

Table of Contents FCFS SJF HPF RR FCFS FCFS (First-Come, First-Served) scheduling algorithm is the simplest process scheduling algorithm, also known as first-come, first-served algorithm. In this algorithm, processes are executed in the order in which they arrive on the ready queue, that is, processes that arrive first are executed first, and processes that arrive […]

RT-Thread kernel-atomic operation ①

RT-Thread kernel-atomic operation ① RT-Thread Kernel-Atomic Operations Atomic operations Introduction to atomic operations Advantages of Atomic Operations Implementation and usage of RT-Thread atomic operations RT-Thread Atomic Operation API Comprehensive example RT-Thread kernel-atomic operation Atomic operations Introduction to atomic operations Atomic operation refers to an indivisible operation that either executes completely successfully or does not execute […]

10. C++ operator overloading

1. Operator + overloading #include <iostream> #include <string.h> #include <unistd.h> using namespace std; class Point { private: int x; int y; public: Point() {} Point(int x, int y) : x(x), y(y) {} int getX(){ return x; } int getY(){ return y; } void setX(int x){ this->x = x; } void setY(int y){ this->y = y; […]

k8s’s Init Containers container implements code version upgrade release and deployment version rollback: practical operation version

Initialization containers in Pod: Init Containers Theoretical premise of initContainers implementation: Containers in the same Pod share network, volume and other resources Init Containers In Kubernetes, an init container is a container that is started and executed before other containers in the same Pod. Its purpose is to perform initialization logic for the main application […]

Golang standard library: bytes package – byte slice byte array convenient operation

2.2 bytes – byte slice convenient operation This package defines some convenience operations for manipulating byte slices. Because strings can be represented as []byte, the functions and methods defined by the bytes package are very similar to the strings package, so the explanation will be similar to the strings package and can even be referred […]

Operations of hive internal tables and external tables

Table of Contents Create table statement type of data Classification of tables Classification The difference between internal tables and external tables Example Basic operations of internal tables Knowledge points Example Basic operations of external tables Example View/modify table Knowledge points Example Default separator Example quick mapping table Knowledge Example Data import and export File data […]

Operation of partition table and bucket table in Hive

Table of Contents Partition Table First level partition table Knowledge points Example multi-level partitioning Knowledge points Example Partition table operations Example hadoop_hive documentation Bucket table Important parameters Basic bucket table Knowledge points Example Bucket table sorting Knowledge points Example Bucketing principle The difference between partition table and bucket table Partition table Partitioned table features/benefits: It […]