This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import java.lang.management.ManagementFactory; | |
import java.util.concurrent.Executors; | |
public class JConsole8Test { | |
public static void main(String[] args) throws IOException { | |
Executors.newSingleThreadExecutor(runnable -> new Thread(runnable, "JConsole8Test")).execute(() -> { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import java.util.concurrent.Executors; | |
public class JConsole11Test { | |
public static void main(String[] args) throws IOException { | |
Executors.newSingleThreadExecutor().execute(() -> { | |
try { | |
Thread.sleep(1000); |