Confusion in fork join ... disable fork

In reply to Sailaja:

No.

The disable fork statements kills the children of the currently running thread. (i.e the thread executing the disable fork statement).

Your ff2 thread is a single forever statement. You can use the break statement instead to get out of the forever loop.