这是常见的情景(大多数Python程序员不用线程),锁操作稍微拖慢了解释器。
This is a common situation (most Python programs do not use threads), and the lock operations slow the interpreter down a bit.
异步编程时不用开发串行的“线程”代码,你会觉得这有些不自然。
In asynchronous programming you're not developing serial "threads" of code, and thus it doesn't feel that natural.
只要硬件能够适当地安排线程,许多程序设计人员就可能永远不用真正地担心并行程序设计。
As long as the hardware is able to schedule threads appropriately, it's possible that many programmers will never really have to worry about parallel programming.
应用推荐