4
votes
Vote UpVote

Sleep sort and TThread corner case

The Programming Works – If you have not heard it yet – an anonymous genius from 4chan invented a sleep sort, brilliant esoteric sorting algorithm. I have written sleep sort implementation based on Delphi TThread class for rosettacode project, and started to experiment with the code. One of the working variants is: program SleepSortDemo2; {$APPTYPE CONSOLE} uses SysUtils, Classes, SyncObjs; type TSleepThread = class(TThread) private FValue: Integer; FLock: TCriticalSection; protected constructor Create(AValue: Integer; ALock: TCriticalSection); procedure Execute; override; end; ...
Favorite? Off-Topic? Serg @ 2011-06-25 07:22

Statistics

Visits: 926
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Primoz Gabrijelcic
Robert Love
Tier777
vcldeveloper
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)