On Wed, Jul 9, 2025 at 12:38 PM Gregory Nutt <spudan...@gmail.com> wrote:

> The time delay that you are concerned about is simply the context
> switching time and this is necessary to instantiate the thread's stack and
> other operating context.  As a general rule this restoration of thread
> context cannot really be omitted.



I don't think it's even necessary to worry about the time of context
switching. The application in question is a button which might be short
pressed or long pressed. This is measured in hundreds of milliseconds or
even seconds. The context switching time is not perceptible to the human
who is pushing the button.

Cheers,
Nathan

Reply via email to