[fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-03 Thread Bo Berglund via fpc-pascal
So I have this service application which is ported from a Windows Delphi 2007 TService app to a regular command line program for use in Linux. It runs on a RaspberryPi3B+ Normally it sits idle doing nothing but waiting for a client to connect via TCP or a time to occur when it needs to execute a t

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-03 Thread Bo Berglund via fpc-pascal
On Sun, 03 Oct 2021 19:51:49 +0200, Bo Berglund via fpc-pascal wrote: >In this scenario I expected next to no CPU usage when this is running as a >service controlled by systemd, but in fact top shows the service to consume 10% >CPU when it is doing nothing, no client connected and no task running