看板
[ Python ]
討論串[問題] blocking queue 實作
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
Q1. https://docs.python.org/3/library/threading.html#threading.Condition.wait. This method releases the underlying lock, and then blocks until it is.
(還有819個字)
內容預覽:
謝謝幫忙review. https://paste.ubuntu.com/p/Zjh3y6ychm/. 抄了source code,改成這樣. Consumer1先跑,取得了self.not_empty,並且因為que == 0. 所以等在while loop裡 (wait()). Consumer
(還有252個字)
內容預覽:
實現一個 thread safe, blocking bounded Queue. my implementation. https://paste.ubuntu.com/p/697Qv8dRtR/. follow up. 必須支援multi put. 我這樣的做法有滿足要求嗎?. 我不是很了解mu
(還有197個字)
首頁
上一頁
1
下一頁
尾頁