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
Explain the use of with statement?
What is the difference between 'is' and '==' in python?
What is python tuples and how is it different from lists?
What is pip and when it is used ?
Should I learn python before c?
How to remove values to a python array?
How to import a module given the full path?
What module is used to execute linux commands through the python script and give us with one example
What is pip?
What is __ init __( self in python?
How is garbage handled in python?
Use of double quotes and single quote in python?
How do you escape a string in python?
What sort does python use?
Why do arrays have a 0 in it?