Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can i kill thread without stop() and destroy()

Answer Posted / ganesh slv

Hey..

{
Thread t = new Thread (this); // or may be in some other ways
t.start (); // starting the thread.

// some codes here

// Now you can stop you thread by assigning null to the
thread

t = null;
}

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the similarity between dynamic binding and linking?

1057


What is the use of list in java?

938


Differentiate between stringbuffer and stringbuilder in java.

982


How can you share data between two thread in Java?

900


Tell us something about set interface.

959


What does i ++ mean in Java?

891


Is java a software?

897


What are the 6 functions?

910


Can classes declared using the abstract keyword cab be instantiated?

1008


What is a class component?

1116


Is null an object java?

931


What is function and its uses?

1040


What do you understand by weak reference?

959


What does 3 dots mean in java?

925


What is try-with-resources in java?

1106