setPriority(); 设置线程的优先级
Thread类里面的
MIN_PRIORITY = 1 表示最小优先级
NORM_PRIORITY = 5 表示默认优先级
MAX_PRIORITY = 10 表示最大优先级
wx60bc17759a517 博主文章分类:java基础 ©著作权
setPriority(); 设置线程的优先级
Thread类里面的
MIN_PRIORITY = 1 表示最小优先级
NORM_PRIORITY = 5 表示默认优先级
MAX_PRIORITY = 10 表示最大优先级
上一篇:主线程和守护线程
契约优先(API First)开发是指应用程序开发过程中,将API设计作为第一优先级的任务。
/* 关于Java中的整数型 数据类型 占用空间 默认值 取值范围 -------------------------------------------------------------- byte 1 0 [-128~127] s
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M