Five parallel thread are running after successfully execution of three i want to kill/disable rest two thread

In reply to muku_383:

The given code seems to work fine with no issues.