4 ms·
Biggest benefit with Erlang for me is preemptive scheduling. Has a perf hit, but you don't get brownouts. Java lacks this and this results in hanging threads. A
by neeleshs 4y ago
Biggest benefit with Erlang for me is preemptive scheduling. Has a perf hit, but you don't get brownouts. Java lacks this and this results in hanging threads. A lot monitoring has to be there to detect these conditions .
Project loom makes this somewhat better, but at its core, java threads are not preemptible
- imtringued 4y agoJava uses regular OS threads that provide preemption by default... Whatever you are talking about has nothing to do with preemption.
- neeleshs 4y agoRight. I meant interruption is cooperative. https://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html https://docs.oracle.com/javase/tutorial/essential/concurrenc...