Jump to content
Sign in to follow this  
ohhai

infinite loops

Recommended Posts

ohhai

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?

Share this post


Link to post
Share on other sites
weaponx

They run sequentially, there is no multithreading.

Share this post


Link to post
Share on other sites
weaponx

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.

Share this post


Link to post
Share on other sites
James

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 language
  • Use a different code base
  • Learn to implement the multi-threading code

Share this post


Link to post
Share on other sites
weaponx

Well the presence of Call() in the example leads me to choice 2.

Share this post


Link to post
Share on other sites
James

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×