12
votes
Vote UpVote

Lock-free vs. locking

The Delphi Geek – For the past few days I was running tests on three different queue implementations – one lock-free, one based on Delphi’s TQueue<T> and TMonitor and one implemented using critical section and linked list. For a good measure I’ve also thrown a blocking wrapper around the lock-free queue into the mix. [Mostly because I’m using it a lot (it has useful features for multithreading work) and I wondered how much time penalty it adds to my applications.] During that time I’ve discovered a showstopper bug in TMonitor which practically made TSimpleThreadedQueue useless when using more than one ...
Favorite? Off-Topic? gabr @ 2011-05-26 22:36

Statistics

Visits: 1168
Votes: 12
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

Craig Stuntz
Daniele Teti
Ericc
François
jamiei
ket555
knight_killer
runner
TOndrej
vcldeveloper
Wouter
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)