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 does global value mutation used for thread-safety?

Answer Posted / chaitanya

The global interpreter lock is used to allow the running of the thread one at a time. This is internal to the program only and used to distribute the functionality along all the virtual machines that are used. Python allows the switching between the threads to be performed by using the byte code instructions that are used to provide platform-independence. The sys.setcheckinterval() method is used that allow the switching to occur during the implementation of the program and the instruction. This provides the understanding in the field of accounting to use the byte code implementation that makes it portable to use. The atomicity can be provided such that the shared variables can be given as built-in data types.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add values to a python array?

1010


What are local variables in python?

958


Tell me how does the ternary operator work in python?

955


Explain about multi-threading concept in python?

979


Is python numpy better than lists?

1024


Write one line of code to get a list of names that start with character ā€˜j’?

900


Which linux is best for python programming?

1123


Explain the database connection in python flask?

993


Which module is used to control the gpio in python?

982


Explain ternary operator in python?

873


Where is python best used?

927


Which ide is better for python?

948


What is the difference between the shallow copy and deep copy in python?

955


Which is better java or python?

1032


What is the purpose of bytes() in python?

965