Source code:
with Pool(14) as p:
p.map(merge_txt, task)
An error occurred:
solution:
pool = Pool(processes=14)
print(pool.map(merge_txt, task))
pool.terminate()
Read More:
- ERR_CONTENT_DECODING_FAILED error occurs in PHP program, summary of solutions
- Python program exit: OS_ Exit() and sys.exit ()
- Solutions to the problem of “there are stopped jobs” in Linux
- Solutions to the problem of collect2: error: LD returned 1 exit status
- command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- Linux common problems and Solutions
- python multiprocessing.pool NameError: name is not defined
- Linux GCC compilation error: “collect2: LD returned 1 exit status”
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- Problems and solutions in using Linux
- Common problems and solutions under Linux
- Ubuntu16.04 pip3 install PyAudio 出错:error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- com.docker.osx.hyperkit.linux failed to start Exit code 1
- error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1, Raspberry Pi installation paramiko
- Error: Command ‘arm linux gnueabihf GCC’ failed with exit status 1, raspberry pie install paramiko
- Git did not exit cleanly (exit code 128)
- Multithreading: when doing unit test, use thread pool to find that the specified code is not running and skip directly
- Mysql cannot allocate memory for the buffer pool solution
- UE4 texture streaming pool over xxmb error
- linux tomcat Run (DWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugIni)