To end the thread, just return from the thread function.
Ok , how do i know which thread is the one im looking for ? i cant use switch statements .!
and please note that i want to really get rid of the thread, i dont want to return each time it is spawned ! ( actaully returning means , get in the function , but dont do anything ! right? )