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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: a multiProcess scheduler in Python

2 点作者 thalesfc超过 8 年前
I was recently involved in a job change, and for that I have been doing a lot of programming interviews (white board questions). One common question on those interviews were: &quot;how to implement a scheduler?&quot; follow up by &quot;how to make it multi-processing?&quot;. I have to confess that I only had a clue on how to do that.<p>After the interview period, I started searching for a solution for that, and could not find one. To be more specific, the std python implementation for a scheduler says &quot;No multi-threading is implied; you are supposed to hack that yourself, or use a single instance per application.&quot;<p>So that&#x27;s what I did, I hacked my own implementation of a multi-process scheduler in python:<p>https:&#x2F;&#x2F;github.com&#x2F;thalesfc&#x2F;Multprocess-Scheduler<p>What do you guys think? How to improve it?

1 comment

mjhea0超过 8 年前
clickable -&gt; <a href="https:&#x2F;&#x2F;github.com&#x2F;thalesfc&#x2F;Multprocess-Scheduler" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thalesfc&#x2F;Multprocess-Scheduler</a>
评论 #12377886 未加载
评论 #12377887 未加载