Mangat Rai Modi
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.

--

--

Mangat Rai Modi
Mangat Rai Modi

Written by Mangat Rai Modi

mangatmodi.com | High scalable services, Low latency coding, and Concurrency! Get’s excited by any tough problem.

No responses yet