import java.io.*; public class PrimeraHebraRunnable { /* ...*/ public static void main (String args[]) { RunnableClass casiHebra = new RunnableClass(); Thread hebra = new Thread(casiHebra); hebra.start(); for (int i=0; i < 100; i++) { System.out.println("En Main: Hola ELO330"); // Tarea principal continúa concurrentemente try { Thread.sleep(70); } catch (InterruptedException e) {} } } /* Otros métodos */ } class RunnableClass implements Runnable { /*.....*/ public void run () { for (int i=0; i < 100; i++) { System.out.println("\t En Runnable Thread Hola año nuevo"); // Tarea segundaria concurrente try { Thread.sleep(100); } catch (InterruptedException e) {} } } }