sriram vemaraju wrote:Thanks a lot i wanted to try but thought that it would hang up my system.
Only temporarily. Eventually the thread would blow on a stack overflow.
How "hung up" your system would be can vary. Other threads will continue to run, but the CPU running the recursing thread would go to 100%, and overall system response will be degraded. It shouldn't crash or lock the machine, however.