[fpc-devel] Re: Multi threading support

"Vinzent Höfler" JeLlyFish.software at gmx.net
Thu Jul 31 12:34:57 CEST 2008


-------- Original-Nachricht --------
> Von: Michael Schnell <mschnell at lumino.de>
> 
> > OTOH, it's looks about the same as in Java and even Java now has
> explicit Locks, because "synchronized" simply isn't efficient 
> I suppose if using Futex (in Linux) or an implementation of a user space 
> Mutex in the RTL (using a bus locked read-modify write instruction and 
> do a system call only when the resource is taken by another thread) 
> needs close to no CPU time.

Yes, but often the question is not how long the *locking* operation takes, but rather how long the *locked* operation takes.


Vinzent.
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx



More information about the fpc-devel mailing list