1

If you were to read() incoming socket data in an infinite while loop, would an interrupt with top priority still run its ISR if the read() call is blocked (i.e. no data in the buffer)?

19172281
  • 685
  • 1
  • 9
  • 24

1 Answers1

4

There's no reason the interrupt would not occur, unless you explicitly disabled interrupts before executing the read().

After all, the whole idea is that it is an interrupt of one sort or another that's going to eventually unblock the call.

Dave Tweed
  • 168,369
  • 17
  • 228
  • 393