I want to run a thread for sending email periodically. In the same program, I am creating processes to do another task. When I create the task, thread from original process is copied to these sub processes and I end up receiving multiple emails instead of one. How can I make sure that thread I run in main program is not copied to the sub processes that are created?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):