2 ms·
Nope. This is what used to pass for a programmer joke. STOP C Add a couple more stop statements in case someone runs this on a Cray and it is going so
by dboreham 9y ago
Nope. This is what used to pass for a programmer joke.
STOP
C Add a couple more stop statements in case someone runs this on a Cray and it is going so fast it breaks though the first one:
STOP
STOP
- Someone 9y agoWell, there is this: http://elixir.free-electrons.com/linux/latest/source/arch/x86/kernel/process.c#L360 http://elixir.free-electrons.com/linux/latest/source/arch/x8... Yes, Linux does the equivalent of while(true) { halt } I don’t think that code will loop, but why take the risk? There is/was a detailed description of what it takes to stop an OS that included multiple ways to stop the CPUs, executed in order in the hope/expectation that one of them would work that in the end hit a similar loop, but I can’t find it anymore.