/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package multithreadingexample; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author denis */ public class MyThread extends Thread{ @Override public void run() { //Thread.sleep(5000); System.out.println("Привет из параллельного потака 1"); } }