Mercurial > hg > Applications > TightVNC_orginal
comparison src/main/java/jp/ac/u_ryukyu/treevnc/test/ThreadTest.java @ 11:57ae9fbb1245
add files
author | Taninari YU <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 Aug 2012 14:02:05 +0900 |
parents | |
children | b0c7fad4c695 |
comparison
equal
deleted
inserted
replaced
10:73abb3b86ce7 | 11:57ae9fbb1245 |
---|---|
1 package jp.ac.u_ryukyu.treevnc.test; | |
2 | |
3 public class ThreadTest { | |
4 // exit(0) forces other threads | |
5 // if there is no exit(0), main routine wait to join other threads implicitly. | |
6 public static void main(String[] args) { | |
7 Thread th = new Thread(new Runnable(){ | |
8 @Override | |
9 public void run() { | |
10 for(int i = 0;i < 10; ) { | |
11 | |
12 } | |
13 } | |
14 | |
15 }); | |
16 th.start(); | |
17 System.exit(0); | |
18 } | |
19 } |