Skip to content

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

Comments

Would a thread-per-core architecture help mitigate security vulnerabilities like spectre and meltdown?

This prevents the application's thread from moving cores, but doesn't prevent an unrelated thread from using that core (especially in a hypervised environment). That unrelated thread could still perform those attacks against the application's thread.

Threads are still going to make syscalls into kernel code, so... not as much, no.

You are better with processes per core, with no threads.

AboutSource Built by g1lg1l

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