JavaTM 2 Platform
Standard Ed. 5.0

java.lang
Ŭ·¡½º ThreadGroup

java.lang.Object 
  »óÀ§¸¦ È®Àå java.lang.ThreadGroup
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Thread.UncaughtExceptionHandler

public class ThreadGroup
extends Object
implements Thread.UncaughtExceptionHandler

thread ±×·ìÀº threadÀÇ ÁýÇÕÀ» ³ªÅ¸³À´Ï´Ù. °Ô´Ù°¡ thread ±×·ì¿¡´Â ´Ù¸¥ thread ±×·ìÀÌ Æ÷ÇԵǴ Àϵµ ÀÖ½À´Ï´Ù. thread ±×·ìÀº Æ®¸®¸¦ Çü¼ºÇØ, ÃÖÃÊÀÇ thread ±×·ìÀ» Á¦¿ÜÇØ ±× Áß¿¡ ºÎ¸ð¸¦ °¡Áý´Ï´Ù.

thread´Â ±× ÀÚüÀÇ thread ±×·ì¿¡ ´ëÇÑ Á¤º¸¿¡ ¾×¼¼½º ÇÏ´Â °ÍÀ» Çã°¡µÇ°í ÀÖ½À´Ï´Ù¸¸, ±× thread ±×·ìÀÇ Ä£thread ±×·ì ¶Ç´Â ±× ´Ù¸¥ thread ±×·ì¿¡ ´ëÇÑ Á¤º¸¿¡ ¾×¼¼½º ÇÒ ¼ö ¾ø½À´Ï´Ù.

µµÀÔµÈ ¹öÀü :
JDK1. 0

»ý¼ºÀÚ °³¿ä
ThreadGroup (String  name)
          »õ·Î¿î thread ±×·ìÀ» ±¸ÃàÇÕ´Ï´Ù.
ThreadGroup (ThreadGroup  parent, String  name)
          »õ·Î¿î thread ±×·ìÀ» ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 int activeCount ()
          thread ±×·ì³»ÀÇ ¾×Ƽºê threadÀÇ ´ë·«ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int activeGroupCount ()
          ÀÌ thread ±×·ì³»ÀÇ ¾×Ƽºê ±×·ìÀÇ ´ë·«ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 boolean allowThreadSuspension (boolean b)
          ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  ÀÌ È£ÃâÀÇ Á¤ÀÇ´Â ÃßõµÇ¾î ÀÖÁö ¾ÊÀº suspend() ¿¡ ÀÇÁ¸ÇÕ´Ï´Ù. ¶Ç, ÀÌ È£ÃâÀÇ µ¿ÀÛÀº ÁöÁ¤µÇÁö ¾Ê½À´Ï´Ù.
 void checkAccess ()
          ÇöÀç ½ÇÇàÁßÀÇ thread°¡ ÀÌ thread ±×·ìÀ» º¯°æÇÏ´Â Á¢±Ù ±ÇÇÑÀ» °¡Áö°í ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 void destroy ()
          ÀÌ thread ±×·ì°ú ±× ¼Ò±×·ìÀÇ ¸ðµç °ÍÀ» ÆıâÇÕ´Ï´Ù.
 int enumerate (Thread [] list)
          ÀÌ thread ±×·ì°ú ±× ¼Ò±×·ì³»ÀÇ °¢ ¾×Ƽºê thread¸¦, ÁöÁ¤µÈ ¹è¿­¿¡ Ä«ÇÇÇÕ´Ï´Ù.
 int enumerate (Thread [] list, boolean recurse)
          ÀÌ thread ±×·ì³»ÀÇ °¢ ¾×Ƽºê thread¸¦, ÁöÁ¤µÈ ¹è¿­¿¡ Ä«ÇÇÇÕ´Ï´Ù.
 int enumerate (ThreadGroup [] list)
          ÀÌ thread ±×·ì³»ÀÇ °¢ ¾×Ƽºê ¼Ò±×·ì¿¡ÀÇ ÂüÁ¶¸¦, ÁöÁ¤µÈ ¹è¿­¿¡ Ä«ÇÇÇÕ´Ï´Ù.
 int enumerate (ThreadGroup [] list, boolean recurse)
          ÀÌ thread ±×·ì³»ÀÇ °¢ ¾×Ƽºê ¼Ò±×·ì¿¡ÀÇ ÂüÁ¶¸¦, ÁöÁ¤µÈ ¹è¿­¿¡ Ä«ÇÇÇÕ´Ï´Ù.
 int getMaxPriority ()
          ÀÌ thread ±×·ìÀÇ ÃÖ°í ¿ì¼± ¼øÀ§¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String getName ()
          ÀÌ thread ±×·ìÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.
 ThreadGroup getParent ()
          ÀÌ thread ±×·ìÀÇ ºÎ¸ð¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void interrupt ()
          ÀÌ thread ±×·ì³»ÀÇ ¸ðµç thread¿¡ ³¢¾îµì´Ï´Ù.
 boolean isDaemon ()
          ÀÌ thread ±×·ìÀÌ demon thread ±×·ìÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 boolean isDestroyed ()
          ÀÌ thread ±×·ìÀÌ ÆıâµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 void list ()
          ÀÌ thread ±×·ì¿¡ ´ëÇÑ Á¤º¸¸¦ Ç¥ÁØ Ãâ·Â¿¡ Ãâ·ÂÇÕ´Ï´Ù.
 boolean parentOf (ThreadGroup  g)
          ÀÌ thread ±×·ìÀÌ thread ±×·ì ÀμöÀ̵簡 ȤÀº °Ô´Ù°¡ À§thread ±×·ì ÁßÀÇ 1°³ ÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 void resume ()
          ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  ÀÌ ¸Þ¼­µå´Â ´ÜÁö Thread.suspend ¹× ThreadGroup.suspend¿Í Á¶ÇÕÇØ »ç¿ëµË´Ï´Ù. ¸ðµÎ µ¥µå ·ÏÀ» ¹ß»ý½ÃÅ°±â ½±±â ¶§¹®¿¡ Ãßõ µÇÁö ¾Ê½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº Thread.suspend()¸¦ ÂüÁ¶ÇϽʽÿÀ.
 void setDaemon (boolean daemon)
          ÀÌ thread ±×·ìÀÇ demon »óŸ¦ º¯°æÇÕ´Ï´Ù.
 void setMaxPriority (int pri)
          ±×·ìÀÇ ÃÖ°í ¿ì¼± ¼øÀ§¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void stop ()
          ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  ÀÌ ¸Þ¼­µå´Â º»ÁúÀûÀ¸·Î ¾ÈÀüÇÏÁö´Â ¾Ê½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº Thread.stop()¸¦ ÂüÁ¶ÇϽʽÿÀ.
 void suspend ()
          ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  ÀÌ ¸Þ¼­µå´Â º»ÁúÀûÀ¸·Î µ¥µå ·ÏÀ» ¹ß»ý½ÃÅ°±â ½¬¿öÁö°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº Thread.suspend()¸¦ ÂüÁ¶ÇϽʽÿÀ.
 String toString ()
          ÀÌ ThreadGroup ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù.
 void uncaughtException (Thread  t, Throwable  e)
          ÀÌ thread ±×·ì³»ÀÇ thread°¡ ijġµÇ¾î ÀÖÁö ¾ÊÀº ¿¹¿Ü¸¦ À§Çؼ­ Á¤ÁöÇØ, thread¿¡ °íÀ¯ Thread.UncaughtExceptionHandler °¡ °®ÃçÁ® ÀÖÁö ¾ÊÀ» ¶§¿¡ Java °¡»ó ¸Ó½Å¿¡ ÀÇÇØ È£ÃâÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

ThreadGroup

public ThreadGroup(String  name)
»õ·Î¿î thread ±×·ìÀ» ±¸ÃàÇÕ´Ï´Ù. ÀÌ »õ·Î¿î ±×·ìÀÇ ºÎ¸ð°¡ ÇöÀç ½ÇÇàÁßÀÇ threadÀÇ thread ±×·ìÀÔ´Ï´Ù.

Ä£thread ±×·ìÀÇ checkAccess ¸Þ¼­µå´Â Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýÇÏ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
name - »õ·Î¿î thread ±×·ìÀÇ À̸§
¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÁöÁ¤µÈ thread ±×·ì³»ÀÇ thread¸¦ ÀÛ¼ºÇÒ ¼ö ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
checkAccess()

ThreadGroup

public ThreadGroup(ThreadGroup  parent,
                   String  name)
»õ·Î¿î thread ±×·ìÀ» ÀÛ¼ºÇÕ´Ï´Ù. ÀÌ »õ·Î¿î ±×·ìÀÇ ºÎ¸ð°¡ ÁöÁ¤µÈ thread ±×·ìÀÔ´Ï´Ù.

Ä£thread ±×·ìÀÇ checkAccess ¸Þ¼­µå´Â Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýÇÏ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
parent - ºÎ¸ðÀÇ thread ±×·ì
name - »õ·Î¿î thread ±×·ìÀÇ À̸§
¿¹¿Ü:
NullPointerException - thread ±×·ìÀÇ Àμö°¡ nullÀÎ °æ¿ì
SecurityException - ÇöÀçÀÇ thread°¡ ÁöÁ¤µÈ thread ±×·ì³»ÀÇ thread¸¦ ÀÛ¼ºÇÒ ¼ö ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
SecurityException, checkAccess()
¸Þ¼­µåÀÇ »ó¼¼

getName

public final String  getName()
ÀÌ thread ±×·ìÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ thread ±×·ìÀÇ À̸§
µµÀÔµÈ ¹öÀü :
JDK1. 0

getParent

public final ThreadGroup  getParent()
ÀÌ thread ±×·ìÀÇ ºÎ¸ð¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ºÎ¸ð°¡ nullÀÌ ¾Æ´Ñ °æ¿ì, ÃÖÃʷΠģthread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

¹Ýȯ°ª:
ÀÌ thread ±×·ìÀÇ ºÎ¸ð. ºÎ¸ð°¡ nullÀÎ thread ±×·ìÀº Åé ·¹º§ÀÇ thread ±×·ì¸¸
¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ìÀ» º¯°æÇÒ ¼ö ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
checkAccess(), SecurityException, RuntimePermission

getMaxPriority

public final int getMaxPriority()
ÀÌ thread ±×·ìÀÇ ÃÖ°í ¿ì¼± ¼øÀ§¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ±×·ìÀÇ ÀϺÎÀÎ thread¿¡ ÃÖ°í ¿ì¼± ¼øÀ§º¸´Ù ³ôÀº ¿ì¼± ¼øÀ§¸¦ ÁöÁ¤ÇÒ ¼ö ¾ø½À´Ï´Ù.

¹Ýȯ°ª:
ÀÌ thread ±×·ì³»ÀÇ thread·Î ÁöÁ¤ÇÒ ¼ö ÀÖ´Â ÃÖ°í ¿ì¼± ¼øÀ§
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
setMaxPriority(int)

isDaemon

public final boolean isDaemon()
ÀÌ thread ±×·ìÀÌ demon thread ±×·ìÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. demon thread ±×·ìÀº ±× ¸¶Áö¸· thread°¡ Á¤ÁöÇÏ´Â °æ¿ì, ¶Ç´Â ¸¶Áö¸· thread ±×·ìÀÌ ÆıâµÇ´Â °æ¿ì¿¡´Â ÀÚµ¿ÀûÀ¸·Î ÆıâµË´Ï´Ù.

¹Ýȯ°ª:
ÀÌ thread ±×·ìÀÌ demon thread ±×·ìÀÎ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
µµÀÔµÈ ¹öÀü :
JDK1. 0

isDestroyed

public boolean isDestroyed()
ÀÌ thread ±×·ìÀÌ ÆıâµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ °´Ã¼°¡ ÆıâµÇ°í ÀÖ´Â °æ¿ì´Â true
µµÀÔµÈ ¹öÀü :
JDK1. 1

setDaemon

public final void setDaemon(boolean daemon)
ÀÌ thread ±×·ìÀÇ demon »óŸ¦ º¯°æÇÕ´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

demon thread ±×·ìÀº ±× ¸¶Áö¸· thread°¡ Á¤ÁöÇÏ´Â °æ¿ì, ¶Ç´Â ±× ¸¶Áö¸· thread ±×·ìÀÌ ÆıâµÇ´Â °æ¿ì¿¡ ÀÚµ¿ÀûÀ¸·Î ÆıâµË´Ï´Ù.

ÆĶó¹ÌÅÍ:
daemon - trueÀÎ °æ¿ì´Â ÀÌ thread ±×·ìÀ» demon thread ±×·ìÀ¸·Î¼­ ¸¶Å© ÇØ, ±×·¸Áö ¾ÊÀº °æ¿ì´Â ÀÌ thread ±×·ìÀ» ÀϹÝÀÇ °ÍÀ¸·ÎÀÇÇØ ¸¶Å© ÇÑ´Ù
¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ìÀ» º¯°æÇÒ ¼ö ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
SecurityException, checkAccess()

setMaxPriority

public final void setMaxPriority(int pri)
±×·ìÀÇ ÃÖ°í ¿ì¼± ¼øÀ§¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ¹Ì ¶ÇÇÑ ³ôÀº ¿ì¼± ¼øÀ§°¡ °¡¸®Å°´Â thread ±×·ì³»ÀÇ thread´Â ¿µÇâÀ» ¹ÞÁö ¾Ê½À´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

priÀμöÀÇ °ªÀÌ Thread.MIN_PRIORITY º¸´Ù ÀÛÀºÁö, Thread.MAX_PRIORITY º¸´Ù Å« °æ¿ì, ±×·ìÀÇ ÃÖ°í ¿ì¼± ¼øÀ§´Â º¯°æµÇÁö ¾Ê½À´Ï´Ù.

±× ¿ÜÀÇ °æ¿ì, ÀÌ ThreadGroup °´Ã¼ÀÇ ¿ì¼± ¼øÀ§´Â ÁöÁ¤µÈ pri ¹× ÀÌ thread ±×·ìÀÇ ºÎ¸ð¿¡°Ô Çã°¡µÇ´Â ÃÖ°í ¿ì¼± ¼øÀ§º¸´Ù ³·°Ô ¼³Á¤µË´Ï´Ù (ÀÌ thread ±×·ìÀÌ, ºÎ¸ð¸¦ °¡ÁöÁö ¾Ê´Â ½Ã½ºÅÛ thread ±×·ìÀÇ °æ¿ì, ±× ÃÖ°í ¿ì¼± ¼øÀ§´Â priÀÎ ¸¸Å­ ¼³Á¤µÈ´Ù). ±× ÈÄ, ÀÌ thread ±×·ì¿¡ ¼ÓÇÏ´Â thread ±×·ì ¸¶´Ù, ÀÌ ¸Þ¼­µå°¡ pri¸¦ Àμö·Î¼­ Àç±ÍÀûÀ¸·Î È£ÃâÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
pri - thread ±×·ìÀÇ »õ·Î¿î ¿ì¼± ¼øÀ§
¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ìÀ» º¯°æÇÒ ¼ö ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
getMaxPriority(), SecurityException, checkAccess()

parentOf

public final boolean parentOf(ThreadGroup  g)
ÀÌ thread ±×·ìÀÌ thread ±×·ì ÀμöÀ̵簡 ȤÀº °Ô´Ù°¡ À§thread ±×·ì ÁßÀÇ 1°³ ÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
g - thread ±×·ì
¹Ýȯ°ª:
ÀÌ thread ±×·ìÀÌ thread ±×·ì ÀμöÀÎÁö, ¶Ç´Â °Ô´Ù°¡ À§thread ±×·ì ÁßÀÇ 1°³ ÀÎ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
µµÀÔµÈ ¹öÀü :
JDK1. 0

checkAccess

public final void checkAccess()
ÇöÀç ½ÇÇàÁßÀÇ thread°¡ ÀÌ thread ±×·ìÀ» º¯°æÇÏ´Â Á¢±Ù ±ÇÇÑÀ» °¡Áö°í ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

½ÃÅ¥·¯Æ¼ ¸Å´ÏÀú°¡ Á¸ÀçÇÏ´Â °æ¿ì, ÀÌ ±×·ìÀÌ ±× Àμö·Î¼­ ÁöÁ¤µÇ¾î ±× checkAccess ¸Þ¼­µå°¡ È£ÃâµË´Ï´Ù. ±× °á°ú, SecurityException°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ì¿¡ÀÇ ¾×¼¼½º°¡ ¿ë¼­µÇÁö ¾ÊÀº °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
SecurityManager.checkAccess(java.lang.ThreadGroup)

activeCount

public int activeCount()
thread ±×·ì³»ÀÇ ¾×Ƽºê threadÀÇ ´ë·«ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. °á°ú¿¡´Â µ¿½ÃÀÇ ¾×Ƽ¹öƼ°¡ ¹Ý¿µµÇÁö ¾ÊÀ» °¡´É¼ºÀÌ ÀÖ¾î, ƯÁ¤ÀÇ ½Ã½ºÅÛ threadÀÇ Á¸Àç¿¡ ÀÇÇØ ¿µÇâÀ» ¹ÞÀ» °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù.

°á°ú´Â º»ÁúÀûÀ¸·Î ºÎÁ¤È®ÇÑ ¼ºÁúÀ» °¡Áö±â ¶§¹®¿¡ ÀÌ ¸Þ¼­µå´Â Á¤º¸ ¸ñÀûÀÎ ¸¸Å­ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ thread ±×·ì³», ¶Ç´Â ÀÌ thread ±×·ìÀ» »óÀ§¿¡ °¡Áö´Â ±× ¿ÜÀÇ thread ±×·ì ÁßÀÇ ¾×Ƽºê threadÀÇ ´ë·«ÀÇ ¼ö
µµÀÔµÈ ¹öÀü :
JDK1. 0

enumerate

public int enumerate(Thread [] list)
ÀÌ thread ±×·ì°ú ±× ¼Ò±×·ì³»ÀÇ °¢ ¾×Ƽºê thread¸¦, ÁöÁ¤µÈ ¹è¿­¿¡ Ä«ÇÇÇÕ´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

¾îÇø®ÄÉÀ̼ǿ¡¼­´Â ¹è¿­ÀÌ ¾î´À Á¤µµÀÇ Å©±â°¡ µÉ±î¿¡ ÀÓÇؼ­ ´ë·«ÀÇ ¼ö¸¦ ¾ò´ÂÀÎ °æ¿ì activeCount ¸Þ¼­µå¸¦ »ç¿ëÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ´Ù¸¸, ¹è¿­ÀÌ ³Ê¹« ÀÛ¾Æ ¸ðµç thread¸¦ º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì, ¿©ºÐÀÇ thread´Â ÅëÁö¾øÀÌ ¹«½ÃµË´Ï´Ù. ÀÌ thread ±×·ì°ú ±× ¼Ò±×·ì¿¡ ÀÖ´Â ¸ðµç ¾×Ƽºê thread¸¦ ¾ò´Â °ÍÀÌ Áß¿äÇÑ °æ¿ì, È£ÃâÃøÀº ¸®ÅÏµÈ Á¤¼ö°ªÀÌ ¾ö¹ÐÇÏ°Ô list ±æÀÌ ¹Ì¸¸ÀÎ °ÍÀ» È®ÀÎÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

ÀÌ ¸Þ¼­µåÀÇ º»ÁúÀûÀÎ °æÇÕ Á¶°ÇÀ̱⠶§¹®¿¡ ÀÌ ¸Þ¼­µå´Â Á¤º¸ ¸ñÀûÀÎ ¸¸Å­ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
list - threadÀÇ ¸®½ºÆ®ÀÇ Æ÷ÇÔóÀÎ ¹è¿­
¹Ýȯ°ª:
¹è¿­¿¡ Æ÷ÇԵǴ thread¼ö
¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread¿¡ ÀÌ thread ±×·ìÀ» ¿­°ÅÇϱâ À§ÇÑ Á¢±Ù ±ÇÇÑÀÌ ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
activeCount(), checkAccess()

enumerate

public int enumerate(Thread [] list,
                     boolean recurse)
ÀÌ thread ±×·ì³»ÀÇ °¢ ¾×Ƽºê thread¸¦, ÁöÁ¤µÈ ¹è¿­¿¡ Ä«ÇÇÇÕ´Ï´Ù. recurse Ç÷¡±×°¡ trueÀÎ °æ¿ì, ÀÌ threadÀÇ ¼Ò±×·ì³»ÀÇ °¢ ¾×Ƽºê thread¿¡ÀÇ ÂüÁ¶µµ Æ÷ÇԵ˴ϴÙ. ¹è¿­ÀÌ ³Ê¹« ÀÛ¾Æ ¸ðµç thread¸¦ º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì, ¿©ºÐÀÇ thread´Â ÅëÁö¾øÀÌ ¹«½ÃµË´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

¾îÇø®ÄÉÀ̼ǿ¡¼­´Â ¹è¿­ÀÌ ¾î´À Á¤µµÀÇ Å©±â°¡ µÉ±î¿¡ ÀÓÇؼ­ ´ë·«ÀÇ ¼ö¸¦ ¾ò´ÂÀÎ °æ¿ì activeCount ¸Þ¼­µå¸¦ »ç¿ëÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ´Ù¸¸, ¹è¿­ÀÌ ³Ê¹« ÀÛ¾Æ ¸ðµç thread¸¦ º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì, ¿©ºÐÀÇ thread´Â ÅëÁö¾øÀÌ ¹«½ÃµË´Ï´Ù. ÀÌ thread ±×·ì¿¡ ÀÖ´Â ¸ðµç ¾×Ƽºê thread¸¦ ¾ò´Â °ÍÀÌ Áß¿äÇÑ °æ¿ì, È£ÃâÃøÀº ¸®ÅÏµÈ Á¤¼ö°ªÀÌ ¾ö¹ÐÇÏ°Ô list ±æÀÌ ¹Ì¸¸ÀÎ °ÍÀ» È®ÀÎÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

ÀÌ ¸Þ¼­µåÀÇ º»ÁúÀûÀÎ °æÇÕ Á¶°ÇÀ̱⠶§¹®¿¡ ÀÌ ¸Þ¼­µå´Â Á¤º¸ ¸ñÀûÀÎ ¸¸Å­ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
list - threadÀÇ ¸®½ºÆ®ÀÇ Æ÷ÇÔóÀÎ ¹è¿­
recurse - ÀÌ thread ±×·ìÀÇ ¼Ò±×·ìÀÎ thread ±×·ì³»ÀÇ threadµµ Æ÷ÇÔÇÒÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â Ç÷¡±×
¹Ýȯ°ª:
¹è¿­¿¡ Æ÷ÇԵǴ thread¼ö
¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread¿¡ ÀÌ thread ±×·ìÀ» ¿­°ÅÇϱâ À§ÇÑ Á¢±Ù ±ÇÇÑÀÌ ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
activeCount(), checkAccess()

activeGroupCount

public int activeGroupCount()
ÀÌ thread ±×·ì³»ÀÇ ¾×Ƽºê ±×·ìÀÇ ´ë·«ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. °á°ú¿¡´Â µ¿½ÃÀÇ ¾×Ƽ¹öƼ°¡ ¹Ý¿µµÇÁö ¾ÊÀ» °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù.

°á°ú´Â º»ÁúÀûÀ¸·Î ºÎÁ¤È®ÇÑ ¼ºÁúÀ» °¡Áö±â ¶§¹®¿¡ ÀÌ ¸Þ¼­µå´Â Á¤º¸ ¸ñÀûÀÎ ¸¸Å­ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ thread ±×·ìÀ» »óÀ§¿¡ °¡Áö´Â ¾×Ƽºê thread ±×·ìÀÇ ¼ö
µµÀÔµÈ ¹öÀü :
JDK1. 0

enumerate

public int enumerate(ThreadGroup [] list)
ÀÌ thread ±×·ì³»ÀÇ °¢ ¾×Ƽºê ¼Ò±×·ì¿¡ÀÇ ÂüÁ¶¸¦, ÁöÁ¤µÈ ¹è¿­¿¡ Ä«ÇÇÇÕ´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

¾îÇø®ÄÉÀ̼ǿ¡¼­´Â ¹è¿­ÀÌ ¾î´À Á¤µµÀÇ Å©±â°¡ µÉ±î¿¡ ÀÓÇؼ­ ´ë·«ÀÇ ¼ö¸¦ ¾ò´ÂÀÎ °æ¿ì activeGroupCount ¸Þ¼­µå¸¦ »ç¿ëÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ´Ù¸¸, ¹è¿­ÀÌ ³Ê¹« ÀÛ¾Æ ¸ðµç thread ±×·ìÀ» º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì, ¿©ºÐÀÇ thread´Â ÅëÁö¾øÀÌ ¹«½ÃµË´Ï´Ù. ÀÌ thread ±×·ì¿¡ ÀÖ´Â ¸ðµç ¾×Ƽºê ¼Ò±×·ìÀ» ¾ò´Â °ÍÀÌ Áß¿äÇÑ °æ¿ì, È£ÃâÃøÀº ¸®ÅÏµÈ Á¤¼ö°ªÀÌ ¾ö¹ÐÇÏ°Ô list ±æÀÌ ¹Ì¸¸ÀÎ °ÍÀ» È®ÀÎÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

ÀÌ ¸Þ¼­µåÀÇ º»ÁúÀûÀÎ °æÇÕ Á¶°ÇÀ̱⠶§¹®¿¡ ÀÌ ¸Þ¼­µå´Â Á¤º¸ ¸ñÀûÀÎ ¸¸Å­ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
list - thread ±×·ìÀÇ ¸®½ºÆ®ÀÇ Æ÷ÇÔóÀÇ ¹è¿­
¹Ýȯ°ª:
¹è¿­¿¡ Æ÷ÇԵǴ thread ±×·ì¼ö
¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread¿¡ ÀÌ thread ±×·ìÀ» ¿­°ÅÇϱâ À§ÇÑ Á¢±Ù ±ÇÇÑÀÌ ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
activeGroupCount(), checkAccess()

enumerate

public int enumerate(ThreadGroup [] list,
                     boolean recurse)
ÀÌ thread ±×·ì³»ÀÇ °¢ ¾×Ƽºê ¼Ò±×·ì¿¡ÀÇ ÂüÁ¶¸¦, ÁöÁ¤µÈ ¹è¿­¿¡ Ä«ÇÇÇÕ´Ï´Ù. recurse Ç÷¡±×°¡ trueÀÎ °æ¿ì, ¼Ò±×·ìµîÀÇ ¸ðµç ¾×Ƽºê ¼Ò±×·ì¿¡ÀÇ ÂüÁ¶µµ Æ÷ÇԵ˴ϴÙ.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

¾îÇø®ÄÉÀ̼ǿ¡¼­´Â ¹è¿­ÀÌ ¾î´À Á¤µµÀÇ Å©±â°¡ µÉ±î¿¡ ÀÓÇؼ­ ´ë·«ÀÇ ¼ö¸¦ ¾ò´ÂÀÎ °æ¿ì activeGroupCount ¸Þ¼­µå¸¦ »ç¿ëÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ´Ù¸¸, ¹è¿­ÀÌ ³Ê¹« ÀÛ¾Æ ¸ðµç thread ±×·ìÀ» º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì, ¿©ºÐÀÇ thread´Â ÅëÁö¾øÀÌ ¹«½ÃµË´Ï´Ù. ÀÌ thread ±×·ì¿¡ ÀÖ´Â ¸ðµç ¾×Ƽºê ¼Ò±×·ìÀ» ¾ò´Â °ÍÀÌ Áß¿äÇÑ °æ¿ì, È£ÃâÃøÀº ¸®ÅÏµÈ Á¤¼ö°ªÀÌ ¾ö¹ÐÇÏ°Ô list ±æÀÌ ¹Ì¸¸ÀÎ °ÍÀ» È®ÀÎÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

ÀÌ ¸Þ¼­µåÀÇ º»ÁúÀûÀÎ °æÇÕ Á¶°ÇÀ̱⠶§¹®¿¡ ÀÌ ¸Þ¼­µå´Â Á¤º¸ ¸ñÀûÀÎ ¸¸Å­ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
list - threadÀÇ ¸®½ºÆ®ÀÇ Æ÷ÇÔóÀÎ ¹è¿­
recurse - Æ÷ÇԵǴ ¸ðµç thread ±×·ìÀ» Àç±ÍÀûÀ¸·Î ¿­°ÅÇÒÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â Ç÷¡±×
¹Ýȯ°ª:
¹è¿­¿¡ Æ÷ÇԵǴ thread ±×·ì¼ö
¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread¿¡ ÀÌ thread ±×·ìÀ» ¿­°ÅÇϱâ À§ÇÑ Á¢±Ù ±ÇÇÑÀÌ ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
activeGroupCount(), checkAccess()

stop

@Deprecated 
public final void stop()
ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  ÀÌ ¸Þ¼­µå´Â º»ÁúÀûÀ¸·Î ¾ÈÀüÇÏÁö´Â ¾Ê½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº Thread.stop()¸¦ ÂüÁ¶ÇϽʽÿÀ.

ÀÌ thread ±×·ì³»ÀÇ ¸ðµç thread¸¦ Á¤ÁöÇÕ´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

´ÙÀ½¿¡ ÀÌ ¸Þ¼­µå´Â ÀÌ thread ±×·ì°ú ±× ¸ðµç ¼Ò±×·ì³»ÀÇ ¸ðµç thread¿¡ ´ëÇØ stop ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù.

¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ì ¶Ç´Â thread ±×·ì³»ÀÇ thread¿¡ÀÇ ¾×¼¼½º°¡ Çã°¡µÇÁö ¾Ê´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
SecurityException, Thread.stop(), checkAccess()

interrupt

public final void interrupt()
ÀÌ thread ±×·ì³»ÀÇ ¸ðµç thread¿¡ ³¢¾îµì´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

´ÙÀ½¿¡ ÀÌ ¸Þ¼­µå´Â ÀÌ thread ±×·ì°ú ±× ¸ðµç ¼Ò±×·ì³»ÀÇ ¸ðµç thread¿¡ ´ëÇØ interrupt ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù.

¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ì ¶Ç´Â thread ±×·ì³»ÀÇ thread¿¡ÀÇ ¾×¼¼½º°¡ Çã°¡µÇÁö ¾Ê´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
1.2
°ü·Ã Ç׸ñ:
Thread.interrupt(), SecurityException, checkAccess()

suspend

@Deprecated 
public final void suspend()
ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  ÀÌ ¸Þ¼­µå´Â º»ÁúÀûÀ¸·Î µ¥µå ·ÏÀ» ¹ß»ý½ÃÅ°±â ½¬¿öÁö°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº Thread.suspend()¸¦ ÂüÁ¶ÇϽʽÿÀ.

ÀÌ thread ±×·ì³»ÀÇ ¸ðµç thread¸¦ Á¤ÁöÇÕ´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

´ÙÀ½¿¡ ÀÌ ¸Þ¼­µå´Â ÀÌ thread ±×·ì°ú ±× ¸ðµç ¼Ò±×·ì³»ÀÇ ¸ðµç thread¿¡ ´ëÇØ suspend ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù.

¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ì ¶Ç´Â thread ±×·ì³»ÀÇ thread¿¡ÀÇ ¾×¼¼½º°¡ Çã°¡µÇÁö ¾Ê´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
Thread.suspend(), SecurityException, checkAccess()

resume

@Deprecated 
public final void resume()
ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  ÀÌ ¸Þ¼­µå´Â ´ÜÁö Thread.suspend ¹× ThreadGroup.suspend¿Í Á¶ÇÕÇØ »ç¿ëµË´Ï´Ù. ¸ðµÎ µ¥µå ·ÏÀ» ¹ß»ý½ÃÅ°±â ½±±â ¶§¹®¿¡ Ãßõ µÇÁö ¾Ê½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº Thread.suspend()¸¦ ÂüÁ¶ÇϽʽÿÀ.

ÀÌ thread ±×·ì³»ÀÇ ¸ðµç thread¸¦ Àç°³ÇÕ´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

´ÙÀ½¿¡ ÀÌ ¸Þ¼­µå´Â ÀÌ thread ±×·ì°ú ±× ¸ðµç ¼Ò±×·ì³»ÀÇ ¸ðµç thread¿¡ ´ëÇØ resume ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù.

¿¹¿Ü:
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ì ¶Ç´Â thread ±×·ì³»ÀÇ thread¿¡ÀÇ ¾×¼¼½º°¡ Çã°¡µÇÁö ¾Ê´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
SecurityException, Thread.resume(), checkAccess()

destroy

public final void destroy()
ÀÌ thread ±×·ì°ú ±× ¼Ò±×·ìÀÇ ¸ðµç °ÍÀ» ÆıâÇÕ´Ï´Ù. ÀÌ thread ±×·ì³»¿¡ ÀÖ´ø ¸ðµç thread°¡ Á¤ÁöµÇ°í ÀÖ´Â °Í, Áï, ÀÌ thread ±×·ìÀÌ ºñ¾îÀÖÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù.

¿ì¼±, ÀÌ thread ±×·ìÀÇ checkAccess ¸Þ¼­µå°¡ Àμö¾øÀÌ È£ÃâÇÕ´Ï´Ù. ÀÌ °á°ú, ½ÃÅ¥·¯Æ¼ ¿¹¿Ü°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

¿¹¿Ü:
IllegalThreadStateException - thread ±×·ìÀÌ ºñ¾îÀÖÁö ¾ÊÀº °æ¿ì, ¶Ç´Â thread ±×·ìÀÌ ÀÌ¹Ì ÆıâµÇ°í ÀÖ´Â °æ¿ì
SecurityException - ÇöÀçÀÇ thread°¡ ÀÌ thread ±×·ìÀ» º¯°æÇÒ ¼ö ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
JDK1. 0
°ü·Ã Ç׸ñ:
checkAccess()

list

public void list()
ÀÌ thread ±×·ì¿¡ ´ëÇÑ Á¤º¸¸¦ Ç¥ÁØ Ãâ·Â¿¡ Ãâ·ÂÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â µð¹ö±×ÀÇ °æ¿ì¿¡¸¸ µµ¿òÀÌ µË´Ï´Ù.

µµÀÔµÈ ¹öÀü :
JDK1. 0

uncaughtException

public void uncaughtException(Thread  t,
                              Throwable  e)
ÀÌ thread ±×·ì³»ÀÇ thread°¡ ijġµÇ¾î ÀÖÁö ¾ÊÀº ¿¹¿Ü¸¦ À§Çؼ­ Á¤ÁöÇØ, thread¿¡ °íÀ¯ Thread.UncaughtExceptionHandler °¡ °®ÃçÁ® ÀÖÁö ¾ÊÀ» ¶§¿¡ Java °¡»ó ¸Ó½Å¿¡ ÀÇÇØ È£ÃâÇÕ´Ï´Ù.

ThreadGroup uncaughtException ¸Þ¼­µå´Â ÀÌÇϸ¦ ½ÇÇàÇÕ´Ï´Ù.

¾îÇø®ÄÉÀ̼ÇÀº, ThreadGroup ¼­ºê Ŭ·¡½º¿¡¼­ ÀÌ ¸Þ¼­µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ijġµÇ¾î ÀÖÁö ¾ÊÀº ¿¹¿Ü¸¦ ´Ù¸¥ ¹æ¹ýÀ¸·Î ó¸®ÇÒ ¼ö ÀÖ½À´Ï´Ù .

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Thread.UncaughtExceptionHandler ³»ÀÇ uncaughtException
ÆĶó¹ÌÅÍ:
t - Á¾·áÇÏ·Á°í ÇÏ°í ÀÖ´Â thread
e - ijġµÇ¾î ÀÖÁö ¾ÊÀº ¿¹¿Ü
µµÀÔµÈ ¹öÀü :
JDK1. 0

allowThreadSuspension

@Deprecated 
public boolean allowThreadSuspension(boolean b)
ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  ÀÌ È£ÃâÀÇ Á¤ÀÇ´Â ÃßõµÇ¾î ÀÖÁö ¾ÊÀº suspend() ¿¡ ÀÇÁ¸ÇÕ´Ï´Ù. ¶Ç, ÀÌ È£ÃâÀÇ µ¿ÀÛÀº ÁöÁ¤µÇÁö ¾Ê½À´Ï´Ù.

¸Þ¸ð¸® ºÎÁ·¿¡ ÇÑ ¾Ï¹¬ÀÇ Áß´ÜÀ» Á¦¾îÇϱâ À§Çؼ­ VM¿¡ ÀÇÇØ »ç¿ëµË´Ï´Ù.

ÆĶó¹ÌÅÍ:
b - Áß´ÜÀ» °¡´É ¶Ç´Â ºÒ°¡·Î ÇÏ´Â ºÒ¸®¾ð °ª
¹Ýȯ°ª:
¼º°øÇßÀ» °æ¿ì´Â true
µµÀÔµÈ ¹öÀü :
JDK1. 1

toString

public String  toString()
ÀÌ ThreadGroup ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ toString
¹Ýȯ°ª:
ÀÌ thread ±×·ìÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇö
µµÀÔµÈ ¹öÀü :
JDK1. 0

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.