|
JavaTM Platform Standard Ed. 6 |
|||||||||
전 다음 | 프레임 있어 프레임 없음 |
Thread 를 사용하고 있는 패키지 | |
---|---|
java.lang | Java 프로그램 언어의 설계해 기본적인 클래스를 제공합니다. |
java.util.concurrent | 병행 프로그래밍으로 자주(잘) 사용되는 유틸리티 클래스입니다. |
java.util.concurrent.locks | 편입의 동기 및 감시와 구별된 상태의 락 및 대기용의 시스템를 제공하는 인터페이스 및 클래스. |
javax.swing.text | 편집 가능한 텍스트 컴퍼넌트와 편집 불능인 텍스트 컴퍼넌트를 처리하는 클래스와 인터페이스를 제공합니다. |
java.lang 에서의 Thread 의 사용 |
---|
Thread 를 돌려주는 java.lang 의 메소드 | |
---|---|
static Thread |
Thread. currentThread ()
현재 실행중의 thread 객체의 참조를 돌려줍니다. |
Thread 형의 인수를 가지는 형태를 돌려주는 java.lang 의 메소드 | |
---|---|
static Map <Thread ,StackTraceElement []> |
Thread. getAllStackTraces ()
모든 라이브 thread의 스택 트레이스 맵을 돌려줍니다. |
Thread 형의 파라미터를 가지는 java.lang 의 메소드 | |
---|---|
void |
Runtime. addShutdownHook (Thread hook)
새로운 가상 머신의 종료 훅을 등록합니다. |
void |
SecurityManager. checkAccess (Thread t)
호출측의 thread가 thread 인수의 수정을 허가되어 있지 않은 경우에, SecurityException 를 throw 합니다. |
static int |
Thread. enumerate (Thread [] tarray)
현행 thread의 thread 그룹 및 그 하위 그룹내의 모든 액티브한 thread를, 지정된 배열에 카피합니다. |
int |
ThreadGroup. enumerate (Thread [] list)
이 thread 그룹과 그 소그룹내의 각 액티브 thread를, 지정된 배열에 카피합니다. |
int |
ThreadGroup. enumerate (Thread [] list,
boolean recurse)
이 thread 그룹내의 각 액티브 thread를, 지정된 배열에 카피합니다. |
boolean |
Runtime. removeShutdownHook (Thread hook)
벌써 등록한 가상 머신의 종료 훅을 등록 해제합니다. |
void |
Thread.UncaughtExceptionHandler. uncaughtException (Thread t,
Throwable e)
지정된 캐치 되지 않는 예외에 의해, 지정된 thread가 종료했을 때에 불려 가는 메소드입니다. |
void |
ThreadGroup. uncaughtException (Thread t,
Throwable e)
이 thread 그룹내의 thread가, 캐치되어 있지 않은 예외를 위해서(때문에) 정지해, thread에 고유 Thread.UncaughtExceptionHandler 가 갖춰져 있지 않을 때에, Java 가상 머신에 의해 불려 갑니다. |
java.util.concurrent 에서의 Thread 의 사용 |
---|
Thread 를 돌려주는 java.util.concurrent 의 메소드 | |
---|---|
Thread |
ThreadFactory. newThread (Runnable r)
새로운 Thread 를 구축합니다. |
Thread 형의 인수를 가지는 형태를 돌려주는 java.util.concurrent 의 메소드 | |
---|---|
protected Collection <Thread > |
Semaphore. getQueuedThreads ()
허가(permit)의 취득을 대기하고 있는 thread를 포함한 컬렉션을 돌려줍니다. |
Thread 형의 파라미터를 가지는 java.util.concurrent 의 메소드 | |
---|---|
protected void |
ThreadPoolExecutor. beforeExecute (Thread t,
Runnable r)
지정된 thread로 지정된 Runnable 를 실행하기 전에 불려 가는 메소드입니다. |
void |
TimeUnit. timedJoin (Thread thread,
long timeout)
이 시간 단위를 사용해, 시간 지정된 Thread.join 를 실행합니다. |
java.util.concurrent.locks 에서의 Thread 의 사용 |
---|
Thread 를 돌려주는 java.util.concurrent.locks 의 메소드 | |
---|---|
protected Thread |
AbstractOwnableSynchronizer. getExclusiveOwnerThread ()
setExclusiveOwnerThread 로 마지막에 설정된 thread를 돌려주어, 설정되었던 적이 없는 경우는 null 를 돌려줍니다. |
Thread |
AbstractQueuedSynchronizer. getFirstQueuedThread ()
큐내의 최초의 (대기 시간의 가장 길다) thread를 돌려줍니다. |
Thread |
AbstractQueuedLongSynchronizer. getFirstQueuedThread ()
큐내의 최초의 (대기 시간의 가장 길다) thread를 돌려줍니다. |
protected Thread |
ReentrantLock. getOwner ()
현재 이 락을 소유하고 있는 thread를 돌려줍니다. |
protected Thread |
ReentrantReadWriteLock. getOwner ()
현재 기입 락을 소유하고 있는 thread를 돌려줍니다. |
Thread 형의 인수를 가지는 형태를 돌려주는 java.util.concurrent.locks 의 메소드 | |
---|---|
Collection <Thread > |
AbstractQueuedSynchronizer. getExclusiveQueuedThreads ()
배타 모드로 취득하기 위해서 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
Collection <Thread > |
AbstractQueuedLongSynchronizer. getExclusiveQueuedThreads ()
배타 모드로 취득하기 위해서 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
protected Collection <Thread > |
ReentrantReadWriteLock. getQueuedReaderThreads ()
read 락의 취득을 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
protected Collection <Thread > |
ReentrantLock. getQueuedThreads ()
이 락의 취득을 대기하고 있는 thread를 포함한 컬렉션을 돌려줍니다. |
Collection <Thread > |
AbstractQueuedSynchronizer. getQueuedThreads ()
취득을 대기하고 있는 thread를 포함한 컬렉션을 돌려줍니다. |
protected Collection <Thread > |
ReentrantReadWriteLock. getQueuedThreads ()
read 락 또는 기입해 락의 몇개의 취득을 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
Collection <Thread > |
AbstractQueuedLongSynchronizer. getQueuedThreads ()
취득을 대기하고 있는 thread를 포함한 컬렉션을 돌려줍니다. |
protected Collection <Thread > |
ReentrantReadWriteLock. getQueuedWriterThreads ()
기입 락의 취득을 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
Collection <Thread > |
AbstractQueuedSynchronizer. getSharedQueuedThreads ()
공유 모드로 취득하기 위해서 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
Collection <Thread > |
AbstractQueuedLongSynchronizer. getSharedQueuedThreads ()
공유 모드로 취득하기 위해서 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
protected Collection <Thread > |
AbstractQueuedSynchronizer.ConditionObject. getWaitingThreads ()
이 Condition 로 대기하고 있을 가능성이 있는 thread를 포함한 컬렉션을 돌려줍니다. |
protected Collection <Thread > |
AbstractQueuedLongSynchronizer.ConditionObject. getWaitingThreads ()
이 Condition 로 대기하고 있을 가능성이 있는 thread를 포함한 컬렉션을 돌려줍니다. |
Collection <Thread > |
AbstractQueuedLongSynchronizer. getWaitingThreads (AbstractQueuedLongSynchronizer.ConditionObject condition)
이 싱크로나이저에 관련지을 수 있었던 지정 상태로 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
Collection <Thread > |
AbstractQueuedSynchronizer. getWaitingThreads (AbstractQueuedSynchronizer.ConditionObject condition)
이 싱크로나이저에 관련지을 수 있었던 지정 상태로 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
protected Collection <Thread > |
ReentrantLock. getWaitingThreads (Condition condition)
이 락에 관련지을 수 있었던 지정 상태를 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
protected Collection <Thread > |
ReentrantReadWriteLock. getWaitingThreads (Condition condition)
기입 락에 관련지을 수 있었던 지정 상태를 대기중의 thread를 포함한 컬렉션을 돌려줍니다. |
Thread 형의 파라미터를 가지는 java.util.concurrent.locks 의 메소드 | |
---|---|
static Object |
LockSupport. getBlocker (Thread t)
아직 블록 해제되어 있지 않은 park 메소드의 최신의 호출로 지정된 브록카객체를 돌려줍니다. |
boolean |
ReentrantLock. hasQueuedThread (Thread thread)
지정된 thread가 이 락의 취득을 대기중인가 어떤가를 조회합니다. |
boolean |
ReentrantReadWriteLock. hasQueuedThread (Thread thread)
read 락 또는 기입해 락의 취득을 대기중의 지정의 thread가 존재할지 어떨지를 조회합니다. |
boolean |
AbstractQueuedSynchronizer. isQueued (Thread thread)
지정된 thread가, 현재 큐에 들어가 있는 경우는 true 를 돌려줍니다. |
boolean |
AbstractQueuedLongSynchronizer. isQueued (Thread thread)
지정된 thread가, 현재 큐에 들어가 있는 경우는 true 를 돌려줍니다. |
protected void |
AbstractOwnableSynchronizer. setExclusiveOwnerThread (Thread t)
현재 배타 액세스를 소유하는 thread를 설정합니다. |
static void |
LockSupport. unpark (Thread thread)
지정된 thread의 허가(permit)가 사용 가능하지 않은 경우에, 사용 가능하게 합니다. |
javax.swing.text 에서의 Thread 의 사용 |
---|
Thread 를 돌려주는 javax.swing.text 의 메소드 | |
---|---|
protected Thread |
AbstractDocument. getCurrentWriter ()
현재의 기입 thread가 있으면, 그것을 가져옵니다. |
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전 다음 | 프레임 있어 프레임 없음 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.