Semaphore used instead of wait & notify. Full compatibility with
extrapolation (tested).