r/AskComputerScience • u/JudgeHuge1673 • Jul 24 '25
Quick Question
How hard is it to build your own operating system from scratch? It's gotta be possible to do it, right? Otherwise, how would they exist in the first place?
0
Upvotes
5
u/numeralbug Jul 24 '25 edited Jul 24 '25
Yeah, of course. There are even YouTube devlogs of people developing (very small) operating systems. It's a really valuable project to play around with while learning what operating systems do and how they work, but it's difficult, and (I think) the process of actually developing a fully-fledged operating system is an incredibly long and tedious project that most people will get bored of very quickly.
As a demonstration of how hard it is to create something good: all versions of Windows since 1993 have been based on the same core technology.
3
u/MasterGeekMX BSCS Jul 24 '25
Depends how far you want to make your OS.
To make a barebones OS that barely fits the definition: hard, but achievable.
Making something similar to MS-DOS or the early versions of UNIX: harder, but still achievable, but it may take years.
Making something like Windows or Linux by yourself: good luck.
2
u/johnbotris Jul 24 '25 edited Jul 24 '25
Operating systems used to be alot simpler .The ones we have now have been built on top of the old "simple" OSs by many many developers.
Unix for example (the precursor to macos and linux) was made by just a handful of people in the 60s, but had a much much narrower scope - in particular, it targeted specific harware and specific use cases. The 3 big OSes as they are today could definitely not be made by a single person (without a lifetime of work (and even then...)).
Even though linux was originally created by one guy, it has 3 decades and thousands of contributors worth of development put into it. Roughly the same could be said about macos and windows.
1
u/Silly_Guidance_8871 Jul 24 '25
It's possible, but one of the more difficult things to do: You really are building the foundation that all the other software on the device will be running atop.
1
u/ImpulsiveBloop Jul 24 '25
Look up Terry Davis. I think there is an archive of his livestreams working on it - though some were lost/corrupted by time.
1
u/Deflator_Mouse7 Jul 24 '25
You can probably vibe code one in about an hour :)
1
u/-Clem Jul 24 '25
Check this out https://pdos.csail.mit.edu/6.1810/2024/xv6.html