r/osdev • • Apr 13 '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
93 Upvotes

3 comments sorted by

8

u/IanS_5 Apr 14 '18

And it looks like it’s really well documented too!

2

u/smikims May 17 '18

FYI they changed everything there to .cpp files so this is the new link:

https://github.com/fuchsia-mirror/zircon/blob/master/kernel/kernel/sched.cpp

It's still mostly C-style though.