Pemrograman Banyak Thread - Komputasi
Pemrograman Banyak Thread - Komputasi
Pemrograman Banyak Thread - Komputasi
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
class Producer extends <strong>Thread</strong> {<br />
}<br />
Queue queue;<br />
Producer (Queue queue) {<br />
}<br />
this.queue = queue;<br />
public void run {<br />
}<br />
int i = 0;<br />
while(true) { queue.add(i++); }<br />
46