我使用多处理模块的process类生成多个进程,这些进程执行一些脚本,然后执行dies.What I,在每个进程上应用超时,这样如果不能及时执行超时,进程就会死掉。Since the join() function doesn;t kill the process, it just blocks the process until it finishes
现在我的问题是我是python及其多处理模块的新手,请耐心等待。
我知道集群模块,但对worker_threads.有疑问const { Worker, isMainThread, threadId } = require('worker_threads') let w1 = new Worker(__filename)
letconsole.log(`Thread ${threadId} is liste