Question about a process on 24.04

Colin Law clanlaw at gmail.com
Thu Feb 26 16:36:57 UTC 2026


On Thu, 26 Feb 2026 at 16:31, Jerry Geis <jerry.geis at gmail.com> wrote:
>
> I have a process that does "polling" of relays.
> It just continues to run - never sleeps
> (I think the OS does not like this and schedules my CPU time as penalty)
>
> If the process runs as is I get "read timeouts".
> However if I put an a 100msec delay - so "give time" back to the OS - it is happy and I never get read timeouts.
>
> Is there a way to tell the OS that its OK for this process to ALWAYS be running and polling or read relays to see if they are active and not give my process a penalty for always running ?

Do you mean that you are reading it at maximum rate, maybe tens of
thousands of times a second?

>
> How do I do that ?

By putting a delay in between reads as you have suggested

Colin L.



More information about the ubuntu-users mailing list