增強版的 Python 編程語言:Stackless Python

jopen 12年前發布 | 29K 次閱讀 Python Python開發

Stackless Python 是一個增強版的 Python 編程語言,允許程序員受益于基于線程的編程,而不會有一半線程的性能和復雜的問題。其最大的特點就是微線程,可避免使用操作系統線程導致的開銷過大的問題。

  • Microthreads: tasklets wrap functions allowing them to be launched as microthreads.
  • Channels: channels can be used for bidirectional communication between tasklets.
  • Scheduling: a round robin scheduler is built in. It can be used to schedule tasklets either cooperatively or preemptively.
  • Serialisation: tasklets can be serialised to disk through pickling for later resumption of execution.

 增強版的 Python 編程語言:Stackless Python

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

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