FILE: RFM_BTS.zip FILE SIZE: 9036 bytes FILE DATE: 01/20/1999 05:25 PM UPLOADED BY: Robert Fred, Meyer rfmeyer@ethergate.com MODIFIED BY: Robert Fred, Meyer TYPE: Freeware DESCRIPTION: A demonstration of the BTS assembly instruction. The BTS instruction tests if the specified bit is set, then sets that specified bit. This enables you to know if you were the one to set the bit, or that it was set by another thread. With the use of the BTS assembly instruction you can have such a thing as a global queue that is modified by many threads without a conflict between them. When a particular theard wishes to modify the queue, it will BTS a bit in a gobal variable, and if it was the one to set the bit, it knows that it has exclusive control over the queue. When done it must clear that bit so that other threads can gain exclusive control over the queue when needed.