add thread interaction with wait(), notify() under synchronized context