@jeigar2/

Ejemplo1

Java

No description

fork
loading
Files
  • Main.java
  • Tarea.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public class Main {
 
public static void main(String[] args) {
         
        Thread t1= new Thread(new Tarea("tarea1"));
        t1.start();
        Thread t2= new Thread(new Tarea("tarea2"));
        t2.start();
        Thread t3= new Thread(new Tarea("tarea3"));
        t3.start();
 
    }
 
}