78

多线程与进程-哈喽酷你-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13569660/2068458
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
进程:(process)进程是操作系统中运行的一个任务(一个应用程序运行在一个进程中)进程中所包含的一个或多个执行单位称为线程(thread)多线程多线程允许我们可以"同时"执行多段代码实际上多线程是并发运行的,即:JVM中的线程调度会为多个线程分配"CPU时间片",并将这些时间片尽可能均匀的分配给线程,当一个线程获取时间片后,该线程热任务代码被CPU执行,

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK