±Û¾´ÀÌ :ÀÌä¿í 1999³â 3¿ù 29ÀÏ 14:22:58
In Reply to: ½º·¹µå¸¦ 6°³±îÁö Ãß°¡½ÃÄÑ º¸¾ÒÁö¸¸... posted by Á¶¿µÈ£ on 1999³â 3¿ù 27ÀÏ 22:00:04:
Á¦°¡ Çغ¸´Ï±ñ..
Thread thread1=new Thread(this);
thread1.setName("FirstThread");
Thread thread2=new Thread(this);
thread2.setName("SecondThread");
Thread thread3=new Thread(this);
thread3.setName("ThirdThread");
Thread thread4=new Thread(this);
thread4.setName("forthThread");
Thread thread5=new Thread(this);
thread5.setName("fifthThread");
Thread thread6=new Thread(this);
thread6.setName("sixthThread");
thread1.start();
thread2.start();
thread3.start();
thread4.start();
thread5.start();
thread6.start();
¿Í °°ÀÌ ½ÃÀÛÇÏ´Â ½ÃÁ¡À» °°°Ô ÇØÁִϱñ
(½ÇÁ¦·Î´Â ¼øÂ÷ÀûÀ¸·Î ½ÃÀÛÀÌ µÇÁö¸¸..)
¾î´À Á¤µµÀÇ ½Ã°£ Â÷¸¦ ÁÙ¿© Áִϱñ
FirstThread:[0]0
FirstThread:[1]17
SecondThread:[0]0
SecondThread:[1]53
forthThread:[0]72
forthThread:[1]90
ThirdThread:[0]108
ThirdThread:[1]127
fifthThread:[0]146
fifthThread:[1]165
SecondThread:[2]728
:
:
sixthThread:[7]930
fifthThread:[8]1027
fifthThread:[9]1047
forthThread:[8]1067
forthThread:[9]1087
sixthThread:[8]1107
sixthThread:[9]1127
À§¿Í °°Àº °á°ú°¡ ³ªÅ¸³ª´õ±º¿ä...