Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)
I want to know more about global interpreter lock and why is it considered an issue?

1 Answer

0 votes
by (108k points)

Kindly be informed that Python's GIL is designed to serialize access to interpreter internals from different threads. On multi-core systems, it means that multiple threads can't completely make use of multiple cores.

Note that Python's GIL is only an issue for CPython, the reference implementation. Jython and IronPython don't have a GIL. Generally, you will not come across the GIL except you're writing a C extension. C extension writers need to release the GIL when their extensions do blocking I/O so that other threads in the Python process get a chance to run.

Join this Python Training course now if you want to gain more knowledge in Python.

Related questions

+10 votes
2 answers
asked Jul 13, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
asked Jun 5, 2020 in Python by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked May 11, 2020 in Python by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Jul 13, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Jul 18, 2019 in Python by Sammy (47.6k points)

Browse Categories

...