timerring

CPU can only see the threads

January 23, 2025 · 12 min read · Page View:
Tutorial
Multiple Threads | Multiple Processes | Coroutine | Python

In python, due to the GIL (Global Interpreter Lock), which is a mutex and ensures only one thread can execute at a time, so the multiple threads parallel execution is not supported under the CPython interpreter. But what about the multiple processes? What is the difference between them? How to choose the right method? Do you know the coroutine? Let’s explore it together.

...


Python Function Parameter

December 21, 2024 · 4 min read · Page View:
Tutorial
Python

This blog will review the function parameter of Python. Mainly about the parameter passing, Keyword and Position Parameter, Anonymous Function, and unit test with assert.

...