Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch3.7 队列部分代码运行结果不同 #71

Open
Narcissus7 opened this issue Dec 20, 2019 · 1 comment
Open

ch3.7 队列部分代码运行结果不同 #71

Narcissus7 opened this issue Dec 20, 2019 · 1 comment

Comments

@Narcissus7
Copy link
Contributor

使用队列交换对象,会先输出the queue is empty,然后跳出Consumer。

Python版本:3.6.7
运行结果:

Process Producer : item 160 appended to queue Producer-13
the queue is empty
The size of queue is 1
Process Producer : item 8 appended to queue Producer-13
The size of queue is 2
Process Producer : item 219 appended to queue Producer-13
The size of queue is 3
Process Producer : item 211 appended to queue Producer-13
The size of queue is 4
Process Producer : item 25 appended to queue Producer-13
The size of queue is 5

@laixintao
Copy link
Owner

好像是会这样,我回头看下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants