Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> In thread-per-core, global state is sharded across cores and never accessed "from the outside"

...or possibly it's accessed from everywhere, and locks are needed again. What you're describing is kind of an ideal application architecture, not a hard rule about thread pinning.



What you need to share, you may adorn with locks, queues, etc. But ideally you share very little.

"Possibly accessed from anywhere" is a bad design in general, and unacceptable in realtime processing, where you need to know access patterns exactly.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: