Out of interest, what does?
while(1){ } for(;;){ }I would not be surprised to learn that it varies from company to company and chip to chip, with various bits being shared for common logic.
Edit: looks like VxWorks wants a 32-bit CPU, 128KB of ROM, and 1-2MB of RAM. But you get threads, networking, filesystem, etc.
On more serious MCU's, you might see things like VxWorks or QNX:
https://en.wikipedia.org/wiki/VxWorks
https://en.wikipedia.org/wiki/QNX
As hardware improved, we also saw trimmed down Linux like ucLinux, MontaVista Linux, and so on. It just went from there with increasing complexity (and reboots :).
$0.31 each, available in 2mm x 3mm packages.