[Solved] Power efficiency in C while loops & polling [closed]


The important thing from an efficiency standpoint is that the code doesn’t just continually cycle. In your example, presumably the wait() function is returning control to your OS so that it can immediately dispatch another task.

In short, yes, your second example is power efficient as well, assuming wait() returns control to the the OS.

solved Power efficiency in C while loops & polling [closed]