3 ms·
Multithreading is somewhat unsafe in general. And so is ability to do most I/O, you might overwhelm the system.
by vardump 11y ago
Multithreading is somewhat unsafe in general. And so is ability to do most I/O, you might overwhelm the system.
- trb8 11y agoSure. 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.