[fpc-devel] pthread scheduler attributes
pascaldragon at googlemail.com
Tue Dec 10 14:39:12 CET 2013
Am 10.12.2013 12:51 schrieb "Henry Vermaak" <henry.vermaak at gmail.com>:
> On Tue, Dec 10, 2013 at 12:27:00PM +0100, Michael Van Canneyt wrote:
> > On Tue, 10 Dec 2013, Henry Vermaak wrote:
> > >Hello everyone
> > >
> > >Could anyone tell me why threads are set to not inherit scheduling
> > >parameters from the calling thread?
> > >
> > >
> > No particular reason. Probably because it tries to mimic windows
> I thought Windows threads always start with the same priority as the
Yes and no. On windows processes have a process class and threads have a
priority level. Threads inherit the priority class from the process (and
this can not be changed on a per thread level) and are created with
priority level THREAD_PRIORITY_NORMAL *within* that priority class.
Changing the priority level then only changes the priority level *inside*
the priority class.
Don't know how good this Windows behavior is approximated on cthreads
systems though... (and I don't really know wether it's good to approximate
it :/ )
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel