7 ms·
Anything that processes a signal checks if a signal has been received. It's no so black-and-white at the level of electricity, but higher-level things at the le
by sbellware 7y ago
Anything that processes a signal checks if a signal has been received. It's no so black-and-white at the level of electricity, but higher-level things at the level of durable message queues check for new signals, even if those signals arrive via "push".
- mike_hock 7y agoIt is still good design to do the polling only at the lowest level where you must. Higher layers should be reactive.
- SideburnsOfDoom 7y agoDoes a network card "poll" ? it's hardware activated by current flowing into it. Does the CPU poll the card, no, the CPU is interrupted by the network card, again by receiving an electrical signal. If there's polling, it happens in a matter of a few CPU cycles.
- mike_hock 7y agoAt some point, this is splitting hairs. Single instructions are atomic wrt. interrupts, so surely there must be some sort of check every cycle whether an interrupt has arrived during that cycle. The magnitude of the time slice or polling interval is immaterial as to whether it is to be considered "polling."