Multi-threaded and multi-process detail

I. Threads What is a thread? The basic unit of CPU scheduling and allocation. When the current thread CPU time slice is exhausted, it will cause the next operating system scheduling, such as CPU, to execute when it is its turn.The operating system does not allocate memory for threads, but groups of ...

Posted by sgarcia on Sun, 16 Feb 2020 17:43:28 -0800

Automatic creation of pv for K8S data persistence

1. Types of data persistence:1.emptyDir: Can only be used as temporary storage.If the container is deleted, the data still exists, and if the Pod is deleted, the data is deleted.2.HostPath: Less scenarios increase the coupling between Pod and nodes.3.PV, PVC: based on NFS services.The PV state must be Available, the access mode must be the sam ...

Posted by rdoylelmt on Sun, 16 Feb 2020 15:26:03 -0800

How to implement a simple search engine?

Description: an English text search engine, currently supports Boolean query, phrase query, free text query. C language implementation only uses some common data structures, such as binary tree, hash table, etc. the following document is the lecture report (not as a tutorial), which may not be very cl ...

Posted by berbbrown on Sun, 16 Feb 2020 03:25:11 -0800

Shocked, Python cracked the BiliBili slider verification code to avoid human-computer identification perfectly

Python cracking BiliBili slider verification code |Perfect is impossible, add a shock! Python breaks the BiliBili slider verification code, avoiding human-computer identification perfectly. It can have Preparation Landing page of station B https://passport.bilibili.com/login python3 pip install sel ...

Posted by gunslinger008 on Sun, 16 Feb 2020 04:38:11 -0800

Recursion -- maze problem, eight queens problem

1.1 recursive application scenario Look at a practical application scenario, maze problem (backtracking): the red part in the figure is the fence of maze. From the starting position of the ball, go to the position indicated by the arrow in the lower right corner, and find a way to go 1.2 the conce ...

Posted by Thethug on Sun, 16 Feb 2020 03:14:52 -0800