【发布时间】:2018-09-15 02:09:49
【问题描述】:
我是 gevent 的新手。我已经阅读了 gevent 的介绍
他们提供了简单的示例,但我很难理解 greenlet 是什么。来自学习并发。
Greenlets are a very lightweight coroutine written in C that
are cooperatively scheduled. They provide us with a very lightweight thread-
like object that allows us to achieve concurrent execution within our Python
programs without incurring the cost of spinning up multiple threads.
Greenlets 不是线程? 同步点如何定义?有人能举例说明吗?
【问题讨论】: