[fpc-pascal] Daemon using TTimer on Windows

Marcos Douglas B. Santos md at delfire.net
Tue Jul 3 19:21:56 CEST 2018


On Tue, Jul 3, 2018 at 11:36 AM, Giuliano Colla
<giuliano.colla at fastwebnet.it> wrote:
> Il 03/07/2018 15:14, Marcos Douglas B. Santos ha scritto:
>
>> Can we sleep a thread for minutes or even hours without any problems?
>> The OS will not kill the thread?
>
> On Linux environment, sample situation on one of our servers:
>
>> ├─hald───hald-runner─┬─hald-addon-acpi │ ├─hald-addon-keyb │
>> └─2*[hald-addon-stor] 16:27:34 up 567 days, 20:40, 1 user, load average:
>> 0.02, 0.01, 0.00
>
>
> Hald threads are unused since 567 days (they're triggered by the insertion
> of new hardware, which never happened on our server) and are still there!
>
> On Windows a CTRL-ALT-DEL will show you a lot of useless threads activated
> at power on, and sleeping since then.
>
> OS may decide to swap them off, so that activation may be slower, but never
> to kill them.

Very interesting!

Marcos Douglas



More information about the fpc-pascal mailing list