r/programming • u/knife_sharpener • Feb 22 '15
Java Makes Programmers Want To Do Absolutely Anything Else With Their Time
http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35
Upvotes
3
u/[deleted] Feb 22 '15
The ForkJoinPool uses a pretty great scheduling algorithm, which allows for better cache locality and better handling of blocking IO.
The ConcurrentLinkedQueue implementation is wait-free, which is very important in soft real-time applications. The ConcurrentSkipListMap implementation allows truly concurrent reading and writing, using compare-and-swap.
In comparison, all concurrent collections in C# seem to use locks. Most applications don't need the distinction, but some (e.g. finance, game servers, ...) do need them.