This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
How can you stop thread. 1)stop running, if another Thread with higher Porperties is getting runnable. 2)using sleep() clause. 3)throwing interrupted exception. 4)if dead cannot be restarted 5)if the Thread starts another thread 6)if suspended cannot be restarted 7)if interrupted stop running
Well I guess currently Running thread May stop running if thread of Higher priority acquires a ready state.Again whether Higher priority thread enters Running state or NOT is depends on the Implementation.if it is time sliced approach We cant say higher priority thread will Run but if it is preemptive approach i guess higher priority thread will get a chance to Run thus stoping the current ThreaD. well second option will obviously stops the Thread and puts into ready state. I guess Other statements Doesnot make sense