News for hackers. Stuff that matters.
Re:Don't Share Java FileChannels by marginalia_nu on Sunday March 12, 2023 @06:16PM (#35127009)
Java's actually got pretty sane multithreading support. Some classes are doing things that are a bit unintuitive (like this one), but once you grok the Java Memory Model it's actually very straightforward.
Re:Don't Share Java FileChannels by exabrial on Sunday March 12, 2023 @09:16PM (#35129312)
I agree with this. Memory safety, plus concurrency built into the memory model, and very well documented API pretty much make it a breeze.