Click here to Skip to main content
15,917,456 members

Comments by ystraw y (Top 2 by date)

ystraw y 17-Dec-23 12:29pm View    
Thank you very much for your reply. In fact, I am simulating a real requirement of mine. I need to support concurrent find() and a single thread for traversal. Traversal and find() may occur at the same time. I understand that the example I wrote is multi-threaded find() and only the main thread is traversing, and these are read operations, I am looking forward to figuring out why the problem occurs?
ystraw y 17-Dec-23 0:34am View    
I am simulating a scenario where find and traversal occur at the same time, so the query needs to be performed before the find thread is completed, so the count position should not be changed.