reimplemented interprocess synchronization.