compillation error
do not set Data_Thread status as free once the thread is intended for termination
while(1) replaced by do - while for case 5,6