Binary Locks
Binary lock: statuses are "locked" and "unlocked"
Rules for use (just common sense, or common courtesy):
- T must lock item before reading or writing it.
- T must unlock item when finished with it.
- T will not try to lock an item it's already locked.
- T will not try to unlock an item it doesn't already have locked.
Implementation: Queue of waiting T's.