//package debugger; public class AJDBThreads { public static void main(String[] args) { new ThreadForker().go(); } public static String currentThread = "none"; } class ThreadForker { public void go() { fork(1000); fork(500); fork(200); fork(100); } void fork(long sleep) { new NamedThread(sleep).start(); } } class NamedThread implements Runnable { private long sleep; private String name; private Thread thread; private int num = 0; public NamedThread(long sleep) { this.sleep = sleep; } public void start() { if (thread == null) { thread = new Thread(this); name = thread.getName(); thread.start(); } } public void run() { while (true) { AJDBThreads.currentThread = name; System.out.println("\n********** " + AJDBThreads.currentThread + ":" + (num++) + "\n"); try { Thread.sleep(sleep); } catch (Exception e) { } } } } av-itip-broker'>3rdparty/stable29/sabre-dav-itip-broker Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/l10n/nn_NO.js
blob: 7d07e95668883de292bccebaf0c012cfd037efbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21