From f3aa11d831328582af6e70725db7b11bc73a8a6c Mon Sep 17 00:00:00 2001 From: Umit-Soylu Date: Sat, 17 Oct 2020 10:04:22 +0300 Subject: [PATCH] =?UTF-8?q?Tr=C4=B1al?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bilgeadam/java/tutorials/fileIO/asd.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/com/bilgeadam/java/tutorials/fileIO/asd.java diff --git a/src/com/bilgeadam/java/tutorials/fileIO/asd.java b/src/com/bilgeadam/java/tutorials/fileIO/asd.java new file mode 100644 index 0000000..4d23980 --- /dev/null +++ b/src/com/bilgeadam/java/tutorials/fileIO/asd.java @@ -0,0 +1,22 @@ +package com.bilgeadam.java.tutorials.fileIO; + +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +public class asd { + int test ; + static ha t1 = new ha(); + static ha t2 = new ha(); + + public static void main(String[] args) throws InterruptedException { + t1.start(); + + try { + t1.join(10); + } catch (InterruptedException e){ + System.out.println(t1.getName()); + } + ExecutorService s = Executors.newFixedThreadPool(3); + t2.start(); + } +}