Clase Thread - docencia de la ETSIT-URJC
Clase Thread - docencia de la ETSIT-URJC
Clase Thread - docencia de la ETSIT-URJC
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Join<br />
public c<strong>la</strong>ss Joining {<br />
private static Test monitor = new Test();<br />
public static void main(String[] args) {<br />
Sleeper<br />
sleepy = new Sleeper("Sleepy", 1500),<br />
grumpy = new Sleeper("Grumpy", 1500);<br />
Joiner<br />
dopey = new Joiner("Dopey", sleepy),<br />
doc = new Joiner("Doc", grumpy);<br />
grumpy.interrupt();<br />
}<br />
} /