MCPcopy Create free account
hub / github.com/Ramos-dev/OSSTunnel / TestLoad

Class TestLoad

client/src/test/java/TestLoad.java:7–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import java.util.concurrent.Semaphore;
6
7public class TestLoad {
8
9
10 public static void main(String[] args) {
11 RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();
12 runtime.getName();
13
14 }
15
16
17 public static void go() {
18 ExecutorService pool = Executors.newCachedThreadPool();
19 final Semaphore sp = new Semaphore(1, true);
20 for (int i = 0; i < 1; i++) {
21 Runnable runnable = new Runnable() {
22 @Override
23 public void run() {
24 try {
25 sp.acquire();
26
27 } catch (InterruptedException e) {
28 }
29 new SennaLoader();
30 sp.release();
31 }
32 };
33 pool.execute(runnable);
34 }
35 }
36
37
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected