For example, if you are writing a Web server, and all your cached pages are stored in a HashMap, every request will want to acquire and hold the lock on that map, and it will become a bottleneck.
例如,如果您正在编写一个Web服务器,而且所有的高速缓存的页都存储在hashmap中,那么每个请求都将需要获得并占用那个map上的锁,这就将成为一个瓶颈。
For example, if you are writing a Web server, and all your cached pages are stored in a HashMap, every request will want to acquire and hold the lock on that map, and it will become a bottleneck.
例如,如果您正在编写一个Web服务器,而且所有的高速缓存的页都存储在hashmap中,那么每个请求都将需要获得并占用那个map上的锁,这就将成为一个瓶颈。
应用推荐