thinking in java Concurrency terminating when blocked