ohhai Posted February 10, 2009 Share Posted February 10, 2009 I've got 4 infinite loops, each in one fucntion. When I'm trying to run them with call("f1") call("f2") call("f3") call("f4") only first function is running, other seem to be inactive. How can I solve this? Link to comment Share on other sites More sharing options...
weaponx Posted February 10, 2009 Share Posted February 10, 2009 They run sequentially, there is no multithreading. Link to comment Share on other sites More sharing options...
James Posted February 10, 2009 Share Posted February 10, 2009 They run sequentially, there is no multithreading.Actually there have been some attempts at this.Use the search function Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
weaponx Posted February 10, 2009 Share Posted February 10, 2009 Actually there have been some attempts at this.Use the search function I prefer to just say it doesn't exist. Only those that actually need it will know how to implement it properly, everyone else probably just need to rethink their current code. Link to comment Share on other sites More sharing options...
James Posted February 10, 2009 Share Posted February 10, 2009 I prefer to just say it doesn't exist. Only those that actually need it will know how to implement it properly, everyone else probably just need to rethink their current code.I guess so, however if it is important then the OP will have three choices:Use a different languageUse a different code baseLearn to implement the multi-threading code Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
weaponx Posted February 10, 2009 Share Posted February 10, 2009 Well the presence of Call() in the example leads me to choice 2. Link to comment Share on other sites More sharing options...
James Posted February 10, 2009 Share Posted February 10, 2009 Well the presence of Call() in the example leads me to choice 2.I'd agree with that.Perhaps using one loop which calls functions one after another. Unless of course the functions must be called at the same time. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now