Question about a process on 24.04
Jerry Geis
jerry.geis at gmail.com
Thu Feb 26 16:47:00 UTC 2026
On Thu, Feb 26, 2026 at 11:38 AM Colin Law <clanlaw at gmail.com> wrote:
> 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.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Hi Colin,
Correct the process would just read as fast as possible - thats all it
does...
if delay is the correct solution - I can do that.. Thanks!
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20260226/3c465ac5/attachment.html>
More information about the ubuntu-users
mailing list