Joe Gottman schreef:

> if code that should be processed concurrently
> is instead processed sequentially, the results will be correct

Not if parallel sampling of happening stuffs is involved. All of your
thousands of temperature sensors in your nuclear factory, all running
the same code, should not wait for any of their neighbours.

They should interrupt their supervisor if something interesting was
detected, by setting a bit in some register, so the supervisor can
serially check any interrupts. But even the supervisor could be multiple
devices doing that concurrently.

> though the program will take longer to run than necessary.

Not if there is only 1 "processor", because then the overhead of
interleaving processes will make the concurrent processing take longer.

-- 
Groet, Ruud

Reply via email to