Author: Dann Corbit
Date: 15:38:49 12/27/01
Go up one level in this thread
On December 27, 2001 at 18:31:20, Russell Reagan wrote: >What is the advantage of using a spinning method of syncronizing vs. the >blocking version? Are you supposed to do some extra work inside the spinning >loop? If the operation is very fast (e.g. change the contents of an integer) you won't have to wait long for your turn. If you block while you read a file, then an interlocked exchange would surely be an error. Even a critical section is a dam compared to an interlocked exchange. But if the unit of work is large, then other possibilities become more desirable.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.