Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And also using the java.util.concurrdent package sidesteps most foot-guns involving roll your own synchronization.


Perhaps most, but not all. Even something as simple as a date formatter in Java is not thread-safe.


That was fixed with the Java 8 package java.time.format, https://docs.oracle.com/javase/8/docs/api/java/time/format/D...


Ok bad example, but it shouldn't have taken them 15+ years to fix it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: