Where could be any problems in the program and how i solve them with using lock() and unlock()?

后端 未结 0 1727
渐次进展
渐次进展 2021-02-01 18:33

The following piece of pseudo-code shows a typical reader / writer scenario:

string document;
string::size_type length = 0;

write()
{
    while (true) {
                 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题