Skip to content

Comment on Scipio: A Thread-per-Core Crate for Rust and Linuxparent

Comments

Not all the benefits.

Threads also introduce security bugs and possible instability (one thread crash brings the whole thing down).

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.

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.

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.

Fair enough.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.