Advertisement
FacundoCruz

HiloE

May 12th, 2022
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class HiloE extends Thread{
  2.  
  3. public HiloE() {}
  4.  
  5. public void run() {
  6.  
  7. RegionCritica cuenta = new RegionCritica();
  8.  
  9. for(int i=1;i<=30;i++) {
  10.  
  11. Extraccion hiloE = new Extraccion(cuenta);
  12.  
  13. hiloE.start();
  14.  
  15. try {
  16. sleep(80);
  17. } catch (InterruptedException e) {
  18. // TODO: handle exception
  19. }
  20. }
  21. }
  22.  
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement