18.07.2013 Views

Pemrograman Banyak Thread - Komputasi

Pemrograman Banyak Thread - Komputasi

Pemrograman Banyak Thread - Komputasi

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Implements Interface Runnable<br />

Runnable<br />

Sub Sub-Kelas Kelas<br />

class RunnableY implements Runnable {<br />

public void run() {<br />

//apa yang dikerjakan thread<br />

}<br />

}<br />

RunnableY ry = new RunnableY();<br />

<strong>Thread</strong> ty = new <strong>Thread</strong>(ry);<br />

ty.start();<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!