Does the recursion heavily impose on processor and ram?
I mean, that one of my threads has a method, that is very likely to call itself. Let’s say that It can self-call about one time per second. My app should run for at least 24 hours without stopping, so it gives (60*60*24) 86400 self-called methods.
How does it influence on the second (main) thread?
Sorry for my bad english, and for no code, but im not writing from home.
If there are no return statements which will end the string of recursive calls before the 86400th call, it is likely that you will have a stack overflow error from there being too many recursive calls on the stack. Try implementing an iterative solution if possible.