Thread Priority is not implemented in any *nix platform
Original Reporter info from Mantis: ggeldenhuys
-
Reporter name: Graeme Geldenhuys
Original Reporter info from Mantis: ggeldenhuys
- Reporter name: Graeme Geldenhuys
Description:
Only after implementing a threads demo application (Thread Manager Demo [1]), I noticed that thread priorities seem to be ignored under Linux. Taking a closer look, I noticed that in the rtl/unix/cthread.pp unit, there are two $Warning lines saying that setting or getting thread priority is not implemented for any unix-type system.
See the message posted [2] to the fpc-devel mailing list for more details and a possible implementation.
[...excuse my over excited way of portraying the problem, it just came as a shock that Thread Priority was not implemented on any unix-type system, and no bug report was filed regarding it...]
References:
------------
[1] http://opensoft.homeip.net/~graemeg/thread_manager.png
[2] http://lists.freepascal.org/lists/fpc-devel/2010-June/020418.html
Mantis conversion info:
- Mantis ID: 16785
- OS: Ubuntu Linux
- OS Build: 10.04
- Platform: x86_64
- Version: 2.5.1
- Monitored by: » sethdgrover@gmail.com (Seth Grover), » @MageSlayer (Denis Golovan), » @bonmario (Mario Bonati)