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

Which graphs are functions?

1017


What is java thread dump, how can we get java thread dump of a program?

1076


Can we override a variable in java?

1073


What are the 8 primitive data types in java?

1085


Which class is the superclass for every class in java programming?

1067


What is java full form?

1102


What is the main purpose of serialization in java?

1098


What is the difference between serial and throughput garbage collector?

1162


What is the difference between static and non-static variables in java programming?

1037


What are benefits of java?

1101


Which is better list or arraylist in java?

910


Does substring create a new object?

1053


What are different types of constants?

1122


can java object be locked down for exclusive use by a given thread? : Java thread

1156


How do you override a private method in java?

1032