1 min readNov 23, 2017
Something to add, producing the same concurrency codein Java will be extremely hard, because unlike go, java thread will be blocked when using synchronisation(Future.get()). This will lead to the deadlock as all threads kept waiting(blocked) for their child to complete, but the child will never get cpu if using bounded threadpool.
Unbounded threadpool will quickly lead to OOM for anything above 100 elements.