classic concurrency problems in threads 1285834