Hacker News new | ask | show | jobs
by trb8 3988 days ago
Yes. Also there are many "safe" operations on "unsafe". Such as memory fences.
1 comments

Multithreading is somewhat unsafe in general. And so is ability to do most I/O, you might overwhelm the system.
Sure. Unsafe in terms of program correctness. By that measure, new Thread() is unsafe.

But that's not a reasonable definition of "unsafe". This could crash the JVM is a reasonable definition. And fences and ordered instructions cannot.