Wait statement can wait on non-child threads. This might be a bad idea that leads to deadlocks...