control blocked thread