laixintao / laixintao/python-parallel-programming-cookbook-cn
ch3.7 队列部分代码运行结果不同
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
使用队列交换对象,会先输出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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue points to the chapter 3.7 queue example and reports output from Python 3.6.7. Start by locating and running that chapter's producer/consumer code, then compare the observed empty-queue message and Consumer exit with the intended example behavior. Done means the queue exchange produces the expected output without the reported premature exit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100