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
What is __ init__ in python?
Explain how can you generate random numbers in python?
How do you split a string in python?
What is egg and wheel in python?
Is self mandatory in python?
What is the use of python interpreter?
What program to write python?
What is python console?
Multiply all elements of a list without writing a loop?
What is django python?
Explain different way to trigger/ raise exception in your python script?
What is the method does join() in python belong?
How do I watch a file for changes using python?
Do lists start at 0 or 1?
What is polymorphism in python with example?