Python的并發編程工具包 Pykka

fmms 12年前發布 | 46K 次閱讀 Python Python開發

Pykka 項目的目的是為 Python 提供了易用的并發操作抽象層,使用 Actor 模式。

Pykka 提供了 Actor API ,包含兩種不同的實現:

  • ThreadingActor is built on the Python Standard Library’s threading and Queue modules, and has no dependencies outside Python itself. It plays well together with non-actor threads.
  • GeventActor is built on the gevent library. gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. It is generally faster, but doesn’t like playing with other threads.

Pykka 的名稱來源于 JVM 的 Akka,但這并不是 Akka 的 Python 語言移植。

項目主頁:http://www.baiduhome.net/lib/view/home/1337045518713

 本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!