Interprocess communication (IPC) mode

Interprocess communication (IPC) mode Inter process communication (IPC) mainly includes the following: 1,Nameless pipe( PIPE)And famous pipes( FIFO). 2,Signal( signal). 3,system V-IPC Shared memory. 4,system V-IPC Message queue. 5,system V-IPC Semaphore. 6,Socket. 1. Pipeline 1.1 unknown pipeline 1.2 characteristics of unkn ...

Posted by trent2800 on Mon, 06 Sep 2021 20:12:34 -0700

Multiprocessing - multitasking and multiprocessing notes

In the previous section, we talked about the concept of multiprocessing. Just look at multithreading in the previous section. Multi process mainly uses multiprocessing library. The main code flow is as follows 1. Import library: import multiprocessing 2. Create process: t1 = multiprocessing.Process(target=test1) t1.start() import multiprocessi ...

Posted by ManicMax on Sat, 04 Sep 2021 14:40:11 -0700