I used ur code
but i have same problem
whenever i create the thread and compile the whole program
then it restart the process again n again..
plz tell me wats the error in my program
I want to use thread in the switch ..suppose we take the variable in thread and that variable check the time after some seconds 1 or 2 sec
and by using that thread ,, i want to check the battary status or traps for the switch
can u help me for this topic ?
if yes then send me suggestion regarding that....