4 ms·
> Isn't bare metal without an OS? No. When you run with an OS, the OS doesn't intercept every single hardware instruction. It only interjects occasionally (or
by einpoklum 5y ago
> Isn't bare metal without an OS?
No. When you run with an OS, the OS doesn't intercept every single hardware instruction. It only interjects occasionally (or upon requests) - and the rest of the time, your code (or that of other processes) runs directly on the hardware.
... to be honest, that is also partially true in Virtual Machines, but there, the I/O devices and other facilities you see are mostly virtualized, so that when you interact with them you're actually triggering the VM host to run its code rather than triggering physical hardware to do something.
- jandrewrogers 5y agoIn modern virtualized environments, there are usually methods for doing I/O that approximately bypasses the host OS so that your VM is doing I/O against physical hardware. This wasn’t always the case several years ago but virtualized I/O performance can now be very close to bare metal if you write the code for it.
- FPGAhacker 5y ago“ In computer science, bare machine (or bare metal) refers to a computer executing instructions directly on logic hardware without an intervening operating system. “ The definition may be changing, but at least Wikipedia still has it this way.