Python's semaphore doesn't support negative initial values. How, then, do I make a thread wait until 8 other threads have done something? If Semophore supported negative initial values, I could have just set it to -8, and have each thread increment the value by 1, until we have a 0, which unblocks the waiting thread.
I can manually increment a global counter inside a critical section, then use a conditional variable, but I want to see if there are other suggestions.