[자바]쓰레드(Thread)
안녕하세요~~ 이번시간엔 자바 thread (스레드) 에 대해 알아보겠습니다. 쓰레드는 기본적으로 백그라운드에서 작업이 되는데요. 이런 쓰레드를 적용하는 방법에는 여러가지가 있습니다. 먼저 첫번째로 Thread 를 상속(extend) 받아 사용하는 방법입니다. public class ThreadEx extends Thread { private int[] temp; public ThreadEx(String threadname) { // TODO Auto-generated constructor stub super(threadname); temp = new int[10]; for(int i = 0 ; i < temp.length ; i ++) { temp[i] = i; } } @Override public v..