map 不是并发安全的
官方的faq里有说明,考虑到有性能损失,map没有设计成原子操作,在并发读写时会有问题。
Map access is unsafe only when updates are occurring. As long as all goroutines are only reading—looking up elements in the map, including iter
1348 Tweet Counts Per Frequency 推文计数
Description:
A social media company is trying to monitor activity on their site by analyzing the number of tweets that occur in select periods of time. These perio