Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
IshKebab
43 days ago
|
parent
|
context
|
favorite
| on:
Ditch your mutex, you deserve better
Sure, but sometimes shared mutable state
is
better, especially from a performance point of view. For example blurring an image.
janetpacker
43 days ago
[–]
Isn't that a typical case where you don't have to share anything? Divide the image into N chunks, let N threads handle each one, no sharing, just need a single sync point at the end to wait on completion.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: