Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lttlrck
· 12y ago · 0 comments
Distributing threads and processes across available cores is the job of the OS, not the application.
Comments
[–]
Eiwatah4
12y ago
In Rust, (right now) you can choose between a 1:1 or a N:M mapping between OS threads and Rust tasks. With N:M threading, the runtime necessarily does (some of) that internally.
[–]
pcwalton
12y ago
Incidentally, Servo uses both: we use 1:1 for the parallel layout worker threads and M:N for the script and layout tasks.