Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
FreeFull
· 2y ago · 0 comments
Not every program that's written will even be multithreaded, and there's a significant cost to using atomic operations when you don't need them. What is the disadvantage of having non-atomic Rc be available?
Comments
[–]
skitter
2y ago
And Rc can still be useful for multithreaded programs. Not every value needs to be shared between threads.