2 ms·
I generally prefer to code one active thread per process, with multiple processes when I want parallel work. They communicate through shared memory, generally s
by ncmncm 6y ago
I generally prefer to code one active thread per process, with multiple processes when I want parallel work. They communicate through shared memory, generally single-writer enforced by the OS.
So, yes, there can be equally rigorous system-level disciplines that substitute for language-imposed ones, and that can offer much better performance. But it does take a lot of experience to choose well.