Mercurial > hg > Applications > TightVNC_orginal
view src/main/java/jp/ac/u_ryukyu/treevnc/test/ThreadTest.java @ 49:b0c7fad4c695
framebufferupdate : incremental = false
author | one |
---|---|
date | Tue, 18 Jun 2013 19:15:21 +0900 |
parents | 57ae9fbb1245 |
children |
line wrap: on
line source
package jp.ac.u_ryukyu.treevnc.test; public class ThreadTest { // exit(0) forces other threads // if there is no exit(0), main routine wait to join other threads implicitly. public static void main(String[] args) { Thread th = new Thread(new Runnable(){ @Override public void run() { for(int i = 0;i < 10; ) { System.out.println(i); } } }); th.start(); System.exit(0); } }