[fpc-pascal] Daemon using TTimer on Windows
Giuliano Colla
giuliano.colla at fastwebnet.it
Tue Jul 3 16:36:38 CEST 2018
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.
Giuliano
More information about the fpc-pascal
mailing list