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
Is c# better than python?
Why do we need Python Directories
What is the purpose of a // operator?
What is the difference between encapsulation and abstraction in python?
What are the types of variables in python?
How will you reverse a list?
Guess the output?
Why do we want to use break statement in while-loop?
What is composition in python?
What is the proper way to say good bye to python?
What does the
What are the different types of operators in python?
What is setup cfg?
How will you share global variables across modules?
What is the use of break statement?