[fpc-devel] Threading support and C library under Linux/Unix

Daniël Mantione daniel.mantione at freepascal.org
Wed Jun 23 17:35:09 CEST 2010



Op Wed, 23 Jun 2010, schreef Michael Schnell:

> On 06/23/2010 05:18 PM, Mattias Gaertner wrote:
>> What system has such an unfair scheduler?
>
> A "fair" Scheduler only can be fair if time slices are to be managed. If
> you set a thread to a "realtime priority" (OK, you need to be root to be
> allowed to do that :) ) it's priority is above all the normal processes.
> That  is quite normal if you do embedded Linux systems.

It's a non-issue. If you set a thread realtime you know what you are doing 
and can take care you give up the CPU when feasible, or you simply don't 
enter mutuxes shared with non-realtime threads.

Of course if there is a simple fix...

Daniël


More information about the fpc-devel mailing list