Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想运行一个线程来定期发送电子邮件。在同一个程序中,我正在创建流程来执行另一项任务。当我创建任务时,原始进程中的线程被复制到这些子进程中,我最终收到多封电子邮件而不是一封。如何确保我在主程序中运行的线程不会复制到创建的子进程中?