Ok, this is deeper into the infrastructure than I've messed with.
The idea of locking/unlocking the tables isn't going to work as unlock always releases all tables, and there is other code executing for other clients in the same zone process that locks tables.. So I can't use that method.
A simple mutex is out, as I'm on linux and mutexes don't cross processes without shared memory.
So, I'm guessing a semaphore.. In that case I need to know where all the zone processes are forked, so I can create the semaphore before the zones are forked off.
Or - is there a better way being used already to make sure that 2 zone processes get synbcronized?
|