Historic concurrency problems implemented in java