TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Concurrence: a Python framework to create massively concurrent network applications

75 点作者 anuraggoel大约 16 年前

3 条评论

heyadayo大约 16 年前
The concept is a neat addition toa growing list of python non-traditional concurrency options: Stackless, py.greenlet/eventlet, kamaelia, fibra, and twisted's defer.inlineCallbacks offer similar featuers.<p>Of that list, Concurrence is most like fibra and kamaelia, which also use python 2.5+ generators to achieve microthread concurrency.
jcl大约 16 年前
Correct me if I'm wrong, but it seems that this solution, like others, is still constrained by Python's Global Interpreter Lock, ensuring that only one thread per process can be executing Python code at any time.<p>If you want true concurrency of Python code (like if you wanted to run it on multiple cores at once), you'd have to use something like pyprocessing, which spawns off new processes instead of threads.
评论 #518480 未加载
durana大约 16 年前
"It takes a Lightweight-tasks-with-message-passing approach to concurrency."<p>As someone who really likes Erlang's approach to concurrency, I think it is very cool to see it starting to become available in more and more languages.
评论 #518585 未加载