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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Python Locks, RLocks, Semaphores, Conditions, Events and Queues

33 点作者 mcmc超过 14 年前

2 条评论

IgorPartola超过 14 年前
While the OP talks specifically about Python, the patterns of a semaphore, lock (aka mutex, a semaphore with value 1), condition and queue are relevant to many languages, many of which are not hampered by a GIL. Personally, the more I use threads, the more I like this way of programming, at least for the request/response paradigm.
评论 #2187624 未加载
lawfulfalafel超过 14 年前
<a href="http://www.dabeaz.com/python/GIL.pdf" rel="nofollow">http://www.dabeaz.com/python/GIL.pdf</a>