News for hackers. Stuff that matters.

Show HN: a multiProcess scheduler in Python

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: "how to implement a scheduler?" follow up by "how to make it multi-processing?". I have to confess that I only had a clue on how to do that.

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 "No multi-threading is implied; you are supposed to hack that yourself, or use a single instance per application."

So that's what I did, I hacked my own implementation of a multi-process scheduler in python:

https://github.com/thalesfc/Multprocess-Scheduler

What do you guys think? How to improve it?

( 2 comments | 2 points | on HN )
Re:Show HN: a multiProcess scheduler in Python by mjhea0 on Sunday August 28, 2016 @01:50PM (#12377513)
Re:Show HN: a multiProcess scheduler in Python by thalesfc on Sunday August 28, 2016 @02:56PM (#12377886)
thanks