Settings

Theme

Show HN: a multiProcess scheduler in Python

2 points by thalesfc 9 years ago · 3 comments · 1 min read


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?

mjhea0 9 years ago

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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection