Python“;[WinError 233]管道的另一端没有流程;论打印报表

Python“;[WinError 233]管道的另一端没有流程;论打印报表,python,windows,multithreading,while-loop,Python,Windows,Multithreading,While Loop,我编写了一个Python脚本,它在while true循环中一直运行,并按如下间隔运行其他Python脚本: while True: now = time.time() for command in self.commands: if (command.last_called_timestamp + command.interval) < now: command.last_called_timesta

我编写了一个Python脚本,它在while true循环中一直运行,并按如下间隔运行其他Python脚本:

while True:
        now = time.time()
        for command in self.commands:
            if (command.last_called_timestamp + command.interval) < now:
                command.last_called_timestamp = now
                command.run_command_parallel()
        time.sleep(0.1)
def run_command_parallel(self):    
    thread.start_new_thread(os.system, ("python some_other_script.py", ))
这个剧本好几天都很好用。然而,在3-4天后,我总是从在不同线程中运行的脚本的随机打印语句中收到一个错误:“管道的另一端没有进程”。带有while循环的脚本也会终止。你知道我为什么会收到这个错误,以及为什么带有while循环的脚本会终止吗?或者可以在Python中工作的替代解决方案(不使用批处理或windows任务调度器)