By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,272 Members | 1,733 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,272 IT Pros & Developers. It's quick & easy.


P: 5
Greetings strangers,

How do I make another process inside my program so that the created processes can run concurrently with the main processes?
Ex. I have a program that prints helloworld every 5 seconds. At initialization helloworld launches a program called goodbyeworld with os.system(""). Goodbyeworld prints "goodbyeworld" every 5 seconds. However when goodbyeworld is started, helloworld stops working.
Mar 12 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 849
If you're running some flavor of Unix or Linux, look up fork(). It's in the os module and is nearly identical to the C version. If you're running Windows, I'm not sure what the equivalent is, sorry.
Mar 12 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.