I\'m developing a game in java and I implemented a multi-threading system to perform a terrain generation which is a repetitive task (~10-20 tasks, each taking ~10-20ms, in one