+ 11
What programming language is used for writing operating systems
8 Answers
+ 16
Operating system is mostly written in C language because it's an low level language which can interact with hardware as well as in the programming of microprocessor so to write operating system C language is most likely to be choose.
For making an operating system you first should get information about all algorithms to make operating system like scheduling algorithm, deadlock prevention algorithm, resource allocation algorithm, shifting algorithms and so on. Which is used during scheduling of any task or process in the operating system.
you should also learn working of computer architecture and microprocessor 8085 and 8086 which will taught you how to make any architecture like processor and different registers
+ 9
Mostly C, e.g. in Unix.
+ 5
C and ASM for low level or direct access.
+ 5
Window is written mainly with C (80 to 90%).
But now, it's possible to translate kotlin or Python to Go or C.
Go is (also) designed to write operating system .
+ 3
In addition assembly is used in the bootloader. ( the thing that switches to protected mode and loads up your kernel, among other things )
C cannot be used in this part ( not even inline asm ) because compilers cannot generate real mode compliant code.
C++ is usually avoided because using std exceptions is a bad idea, which basically causes most of the C++ library to become unusable so you might as well be using C.
+ 2
and i believe java is used heavily for android, specifically java 8... oops im refereing to android apps
+ 1
Etc
0
C ,C++,python and xtml