上QQ阅读APP看书,第一时间看更新
Questions
- Why is asynchronous programming more efficient than multiple processes/threads to handle I/O concurrency?
- Why is asynchronous programming not a solution to improve the performance of CPU-bound tasks?
- What is the reason why multithreading is not performing as well in Python as in other programming languages?
- What is the benefit of a generator compared to an iterator?
- Why does a generator help in writing asynchronous code?
- What is the difference between calling the next function and calling the send method of a generator object?
- How is a coroutine declared?
- How can a coroutine call another coroutine?
- What is the role of the event loop?