My winning entry of the 2002 Borland multi-threaded programming contest