TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: a multiProcess scheduler in Python

2 pointsby thalesfcover 8 years ago
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

mjhea0over 8 years ago
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 未加载