Re:Scipio: A Thread-per-Core Crate for Rust and Linux
by secondcoming on Tuesday November 03, 2020 @08:36AM
(#24979502)
I want the whole thing to come down. To me, that's preferable to a process silently crashing. Worse still, Linux's OOM killer can kill anything it wants. This is all fine if your processes are truly independent, but if they're not then you've not really gained much by using processes.
Re:Scipio: A Thread-per-Core Crate for Rust and Linux
by gpderetta on Tuesday November 03, 2020 @11:26AM
(#24981059)
processes do provide well defined boundaries that can guarantee the integrity of each component separately, so it is realistic to be able to design an application that can survive the loss of one component even in a memory unsafe language.
Re:Scipio: A Thread-per-Core Crate for Rust and Linux
by quietbritishjim on Tuesday November 03, 2020 @10:31AM
(#24980508)
I didn't say "all the benefits", I said
> all the benefits ... (except the two I just mentioned)
One of those two exceptions was indeed memory protection.
Threads also introduce security bugs and possible instability (one thread crash brings the whole thing down).