2 ms·
it allows any number of reader threads concurrent access without any synchronization or blocking, unlike Go maps. You mean readers concurrent with a writer? AF
by stcredzero 12y ago
it allows any number of reader threads concurrent access without any synchronization or blocking, unlike Go maps.
You mean readers concurrent with a writer? AFAIK, any number of reader threads can get values out of a Go map when it isn't being written to.
- eloff 12y agoYes, concurrent with a writer. If there is more than one writer, the writers must use a mutex, but the single writer and readers don't block each other. I updated the text to make it clear.
- deleted 12y ago[deleted]