3 ms·
It is very difficult to write device drivers in even C++ while still maintaining the ability to write pageable kernel drivers. Drivers must have very strict con
by anaisbetts 3y ago
It is very difficult to write device drivers in even C++ while still maintaining the ability to write pageable kernel drivers. Drivers must have very strict control over availability of memory because it will likely access it at times when a page fault is not possible (i.e. during an interrupt handler). The C# language and runtime would have to add features to explicitly accomodate this at a bare minimum
- tonyedgecombe 3y agoMicrosoft did have an experimental OS[1] written in a variant of C# so it doesn't seem completely unrealistic. [1] https://en.wikipedia.org/wiki/Midori_(operating_system) https://en.wikipedia.org/wiki/Midori_(operating_system) My guess is the internal politics would be a bigger problem than any technical issues.
- anaisbetts 3y agoIt's not unrealistic but Midori made a lot of changes to C# to make it possible, it was almost a different language by the end of the project