The basic notes introduce the basic problems such as data type and file operation. If you want to know more, you can take a look at the interviewThe advanced part mainly includes object-oriented idea, exception handling, iterator, generator and coroutine
Python has been an object-oriented language since ...
Posted by Teaky on Fri, 04 Mar 2022 11:32:25 +0100
In the process of writing this article, we refer to the content of the course "Introduction to Python Programming and data science" by Mr. Hu Junfeng.
Multiple tasks should be carried out simultaneously at one time, but not necessarily at the same time.Parallel: promote multiple tasks at the same time in a period of time, a ...
Posted by wonderman on Thu, 03 Mar 2022 13:14:01 +0100
Here we mainly use the system call fork:
fork is a system call to create a process under Linux The process calling fork is the main process, and a call will produce a child process.fork features: call twice and return: The difference between the main process and the child process starts wi ...
Posted by woolyg on Sat, 19 Feb 2022 15:09:52 +0100
Please don't reprint it. If you have any questions, please delete it Contact information: Q 537 four 0 six 976
Random library is to introduce random location os library to close the furnace stone legend process The multiprocessing library implements multiprocessing cv two library realizes image template matching Py autogu ...
Posted by tbobker on Thu, 10 Feb 2022 20:55:52 +0100
Little loser: brother Yu, the Chinese New Year is coming soon. lol can't be whole! Xiaoyu: No, I want to learn
Loser: are you telling me a joke about the end of the year of the ox? Xiaoyu: finish?? Hey ~ thanks, brother, you reminded me! Little loser:... Thanks to me, too. Meow
The Chinese New Year is just around the cor ...
Posted by meanrat on Sat, 29 Jan 2022 19:34:52 +0100
Basic concepts Process is a dynamic process of a program, and it is also the smallest unit of program execution and resource management allocation. Process lifecycle Create - > schedule - > execute - > die Process status: ready, running, blocked, etc. Three elements of process 1. Program (instruction and data) 2. Virtual m ...
Posted by SL-Cowsrule on Sun, 09 Jan 2022 10:26:13 +0100
A running program is called a process
3. Multi process and multi task
3.1 process creation
# 1. Import process package
# 2. Create process objects through process classes
Process object = multiprocessing.Process()
# 3. Start the process and perform the task
3.2 creating proce ...
Posted by jesse_james on Mon, 03 Jan 2022 04:18:12 +0100
Almost all apps use WebView components. It is also an option to use WebView to host business functions. After all, there is no need to wait for the review of the application market to improve the timeliness of business launch and bug repair. However, WebView loading business functions also has great defects, poor experienc ...
Posted by Daleeburg on Tue, 28 Dec 2021 18:20:22 +0100
Nameless pipe ❤️ ❤️ ❤️
Pipe is also called anonymous pipe. It is the oldest form of IPC (interprocess communication) in UNIX system. All UNIX systems support this communication mechanism.When the parent process calls the pipe function, the kernel will create a cache in the kernel space when executing the pipe function. This cache is the ...
Posted by mraza on Tue, 28 Dec 2021 17:22:29 +0100
How to schedule multiple processes
Why do I need multi process scheduling
Let's first find out the reason for multi process scheduling. Let me summarize it. First, the CPU can only run one process at a time, and the number of CPUs is always less than the number of processes. This requires that multiple processes share a CPU, and each proc ...
Posted by merrittj on Tue, 07 Dec 2021 14:15:42 +0100