How does global value mutation used for thread-safety?



How does global value mutation used for thread-safety?..

Answer / 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

More Python Interview Questions

What are the disadvantages of the Python programming language?

0 Answers  


Write an expression that evaluate to true?

0 Answers  


What is python? What do you understand of pep 8?

0 Answers  


What are types in python?

0 Answers  


How can you keep track of different versions of code?

0 Answers  






How is it possible to share global variables across various modules?

0 Answers  


Can you name ten built-in functions in python and explain each in brief?

0 Answers  


What are the different file processing modes supported by python?

0 Answers  


Which is faster python or php?

0 Answers  


How will you verify different flags at once?

0 Answers  


Why is python not fully object oriented?

0 Answers  


How would you work with numbers other than those in the decimal number system?

0 Answers  


Categories