Thread

Java线程基础
  • A thread is a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution running concurrently. 
  • Every thread has a priority. Threads with higher priority are executed in preference to threads with lower priority. Each thread may or may not also be marked as a daemon. 
  • When a Java Virtual Machine starts up, there is usually a single non-daemon thread (which typically calls the method named main of some designated class). The Java Virtual Machine continues to execute threads until either of the following occurs: 
  • 线程是一个在程序执行的线程。java虚拟机总允许一个应用有多条执行线程同时在运行。
  • 每一个线程有一个优先权。高优先级的线程在优先执行对于低优先级的线程。每一个线程可能或者不可能被标记为后台程序。
  • 当java虚拟机开始了,经常有一个单一不是后台程序的(非守护的)线程。
  • java虚拟机继续执行线程直到下列的发生。

转载于:https://www.cnblogs.com/yugeng/p/7834135.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值