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

2021-10-05 Thread Michael Van Canneyt via fpc-pascal
On Mon, 4 Oct 2021, Bo Berglund via fpc-pascal wrote: On Mon, 04 Oct 2021 12:46:32 -0400, Dennis Lee Bieber via fpc-pascal wrote: COMMENT: here you ask about a non-GU /service/ application, but in your prior post you gave a code snippet. It may just be a documentation flaw, but...

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

2021-10-05 Thread Jean SUZINEAU via fpc-pascal
I don't know if it's related, but I experienced a similar problem a few years ago. It's a console dll written in Freepascal and compiled for Win64 and Linux (Ubuntu). It uses several threads and uses CheckSynchronize to make calls in the main thread. The dll is loaded and used by a 4gl progr