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...


Can you explain the life cycle of a thread?



Can you explain the life cycle of a thread?..

Answer / Shubham Agarwal

In Python, a thread's lifecycle consists of the following stages: Creation (by invoking the `threading.Thread()` constructor), Start (calling `start()` method to begin execution), Run (execution of the `run()` method), Termination (when the thread is done executing or `join()` method is called on it), and Death (garbage collection when there are no more references to the thread object).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Why do list comprehensions write to the loop variable, but generators don’t?

1 Answers  


What are negative indexes and why are they used?

4 Answers  


How do we interpret Python?

2 Answers  


What is difference between input and raw_input?

1 Answers  


What are methods in python?

1 Answers  


How do you convert string as a variable name in python?

1 Answers  


How to install python and prepare environment?

1 Answers  


What are different methods to copy an object in python?

1 Answers  


How do I create a python package in pycharm?

1 Answers  


In oops what is a diamond problem in inheritance?

1 Answers  


What is a repl in python?

1 Answers  


Is yield a keyword in python?

1 Answers  


Categories