public class proporty implements Runnable{
public void run() {
for(int i=1;i<21;i++){
System.out.println(Thread.currentThread().getName()+"number="+i);
}
}
public static void main(String[] args) {
ThreadPriority t1 =new ThreadPriority();
Thread first=new Thread(t1,"first");
Thread second=new Thread(t1,"second");
Thread third=new Thread(t1,"third");
System.out.println(first.getName());
System.out.println(second.getName());
System.out.println(third.getName());
System.out.println(Thread.currentThread()+"property"+Thread.currentThread().getPriority());
}
}
| font-family |
|
| font-size |
|
| font-style |
|
| font-variant |
|
| font-weight |
|
| letter-spacing |
|
| line-height |
|
| text-decoration |
|
| text-align |
|
| text-indent |
|
| text-transform |
|
| white-space |
|
| word-spacing |
|
| color |
|
| bg-attachment |
|
| bg-color |
|
| bg-image |
|
| bg-position |
|
| bg-repeat |
|
| width |
|
| height |
|
| border-top |
|
| border-right |
|
| border-bottom |
|
| border-left |
|
| margin |
|
| padding |
|
| max-height |
|
| min-height |
|
| max-width |
|
| min-width |
|
| outline-color |
|
| outline-style |
|
| outline-width |
|
| position |
|
| top |
|
| bottom |
|
| right |
|
| left |
|
| float |
|
| display |
|
| clear |
|
| z-index |
|
| list-style-image |
|
| list-style-type |
|
| list-style-position |
|
| vertical-align |
|
| border-collapse |
|
| border-spacing |
|
| caption-side |
|
| empty-cells |
|
| table-layout |
|
| text-shadow |
|
| -webkit-box-shadow |
|
| border-radius |
|
| overflow |
|
| cursor |
|
| visibility |
|
| font-family |
|
| font-size |
|
| font-style |
|
| font-variant |
|
| font-weight |
|
| letter-spacing |
|
| line-height |
|
| text-decoration |
|
| text-align |
|
| text-indent |
|
| text-transform |
|
| white-space |
|
| word-spacing |
|
| color |
|
| bg-attachment |
|
| bg-color |
|
| bg-image |
|
| bg-position |
|
| bg-repeat |
|
| width |
|
| height |
|
| border-top |
|
| border-right |
|
| border-bottom |
|
| border-left |
|
| margin |
|
| padding |
|
| max-height |
|
| min-height |
|
| max-width |
|
| min-width |
|
| outline-color |
|
| outline-style |
|
| outline-width |
|
| position |
|
| top |
|
| bottom |
|
| right |
|
| left |
|
| float |
|
| display |
|
| clear |
|
| z-index |
|
| list-style-image |
|
| list-style-type |
|
| list-style-position |
|
| vertical-align |
|
| border-collapse |
|
| border-spacing |
|
| caption-side |
|
| empty-cells |
|
| table-layout |
|
| text-shadow |
|
| -webkit-box-shadow |
|
| border-radius |
|
| overflow |
|
| cursor |
|
| visibility |
|
| font-family |
|
| font-size |
|
| font-style |
|
| font-variant |
|
| font-weight |
|
| letter-spacing |
|
| line-height |
|
| text-decoration |
|
| text-align |
|
| text-indent |
|
| text-transform |
|
| white-space |
|
| word-spacing |
|
| color |
|
| bg-attachment |
|
| bg-color |
|
| bg-image |
|
| bg-position |
|
| bg-repeat |
|
| width |
|
| height |
|
| border-top |
|
| border-right |
|
| border-bottom |
|
| border-left |
|
| margin |
|
| padding |
|
| max-height |
|
| min-height |
|
| max-width |
|
| min-width |
|
| outline-color |
|
| outline-style |
|
| outline-width |
|
| position |
|
| top |
|
| bottom |
|
| right |
|
| left |
|
| float |
|
| display |
|
| clear |
|
| z-index |
|
| list-style-image |
|
| list-style-type |
|
| list-style-position |
|
| vertical-align |
|
| border-collapse |
|
| border-spacing |
|
| caption-side |
|
| empty-cells |
|
| table-layout |
|
| text-shadow |
|
| -webkit-box-shadow |
|
| border-radius |
|
| overflow |
|
| cursor |
|
| visibility |
|
댓글