News for hackers. Stuff that matters.
Re:Re: 100k Threads? (2002) by tester756 on Saturday September 23, 2023 @07:23AM (#37622238)
let's go even further

Why do we even waste resources on OS when we can write e.g UEFI application and run it "directly" and let it manage resources without OS overhead

Nowadays runtimes like Java's, etc, etc. are doing more and more tasks that previously were managed by OSes

Re:Re: 100k Threads? (2002) by gpderetta on Saturday September 23, 2023 @08:05AM (#37622519)
Sure, unikernels are a thing.

But being able to run a full OS is convenient, and often still faster overall as there are magnitudes more people working at optimizing general purpose OSs than specialized unikernels.

Re:Re: 100k Threads? (2002) by spease on Saturday September 23, 2023 @09:41AM (#37623125)
By the time you got done writing device drivers, etc. you would just have another OS.

https://xkcd.com/927/

Also “without OS overhead” - things sitting in memory don’t necessary detract from performance, but not having hardware acceleration for lack of drivers certainly can.

The only overhead guaranteed during execution by the OS is context switching, and if you want to avoid that you’re basically writing an RTOS for an embedded system.