That is, it would be more efficient to allow readers to run while other readers held the lock, but you'd risk a constant stream of reader threads keeping the writer from ever doing its job.
即,允许一些读取器在其他读取器锁定时运行效率更高,但是您可能会有读取器线程的流持续不断的风险,导致编写器无法进行工作。
However, doing this is a bold move and you run the risk of creating a web site that has too much going on.
不过,这样做也有些孤注一掷,你创建的网站可能会显得太繁杂。
Doing this we run the risk of printing the wrong pages, accidentally forgetting the coffee filter and saying the wrong thing.
最终可能是报告印错了页,忘记了咖啡滤网或说错了话。
应用推荐