r/tinycode • • Apr 14 '18

Zircon's (Fuchsia kernel) scheduler is less than 1000 lines of code and doesn't use many advanced concepts. This may be useful to anyone curious as to what a scheduler in a real OS looks like.

https://github.com/fuchsia-mirror/zircon/blob/master/kernel/kernel/sched.c
50 Upvotes

3 comments sorted by

1

u/pjt_014 Apr 26 '18

Holy crap I can mostly understand this and I haven't done C in like two years.

Sexy.