[fpc-devel] Threads and alot of crap
Daniël Mantione
daniel.mantione at freepascal.org
Tue Oct 17 12:36:44 CEST 2006
Op Tue, 17 Oct 2006, schreef Micha Nelissen:
> Daniël Mantione wrote:
> > no kernel call is necessary. If the lock starts spinning, on uniprocessor
> > it won't be released until the kernel schedules the other thread. This
> > exactly the idea behind kernel futexes, if the lock is not held, no
> > kernel
>
> Aren't futexes 2.6+ only ?
They are. For backward compatibility you use the semctl API. This is not
problematic, pthreads uses semctl for <=2.4 as well.
Daniël
More information about the fpc-devel
mailing list