Why does Python's Queue return an approximate size in qsize()?

Viewed 10682

In the doc of qsize() it says: Return the approximate size of the queue.

Why can't it just return an exact size of this Queue? I understand the Queue may be accessed by multiple threads, but at the moment I call the function I think it's still possible to return the exact size of that moment.

2 Answers
Related