Please, can anybody suggest me how to check for deadlock on Sola开发者_StackOverflow中文版ris with the pstack command?
Your question isn't really related to C++, but more the general multi-threading issue of a deadlock. 
When your program is running, get the pid and then in another xterm (or whatever you're using) you run pstack pid and check whether all threads are waiting for a mutex to be released. That's normally a pretty good indicator of deadlock.
Compare pstack outputs - if they are the same, and all threads are waiting for locks then you have a deadlock.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论