性格决定命运,气度影响格局
posts - 20, comments - 18, trackbacks - 0, articles - 1
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

线程的优先级别

Posted on 2007-08-01 20:30 尚爱军 阅读(80) 评论(0)  编辑  收藏
Thread.MIN_PRIORITY = 1
Thread.MAX_PRIORITY= 10
Thread.NORM_PRIORITY = 5
使用下面的方法获得或设置线程对象的优先级。
int getPrioirty();
void setPrioirty(int newPriority);

只有注册用户登录后才能发表评论。


网站导航: