Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built-in concurrent/thread-safe map #1682

Closed
gopherbot opened this issue Apr 9, 2011 · 3 comments
Closed

Built-in concurrent/thread-safe map #1682

gopherbot opened this issue Apr 9, 2011 · 3 comments

Comments

@gopherbot
Copy link
Contributor

by slotties:

I was just watching Andrews presentation (http://osdc.blip.tv/file/4432146/) and his
workaround for thread-safe maps. Yes, it's a way to use a mutex for a whole map. But why
don't you provide built-in maps that are already thread-safe? 

That way you have much more control over how the thread-safeness is guaranteed, e.g. by
using locks per block/segment instead of locking the whole map.
@rsc
Copy link
Contributor

rsc commented Apr 9, 2011

Comment 1:

Status changed to WorkingAsIntended.

@rsc
Copy link
Contributor

rsc commented Apr 9, 2011

@gopherbot
Copy link
Contributor Author

Comment 3 by slotties:

Hm ok, thanks.  Maybe I'm still too much into Java ;)

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants