当前位置:网站首页>Threads and processes
Threads and processes
2022-06-28 09:28:00 【The green flowers of Wang Li's family】
One 、 Definition
process : A process is an application running in the system . Each process is independent , Each process runs in its dedicated and protected memory , A process is an independent unit of the system for resource allocation and scheduling .
Threads : Thread is the basic execution unit of a process , All tasks of a process are executed in threads . yes CPU Basic unit of dispatch and dispatch . The program will start a thread by default , This thread is called the main thread or UI Threads .
Two 、 contact
The process wants to perform the task , There must be threads . Threads of the same process share the address space of this process , Threads in the same process share the resources of the process .
3、 ... and 、 difference
Thread cannot execute independently , Must exist in the application , Multiple thread execution control provided by the application . Multithreading means that multiple execution parts in the same process can be executed at the same time , To achieve process scheduling and management and resource allocation .
notes : Update complete JVM The differences between the two will be introduced in detail from the perspective of memory after the series .
边栏推荐
- 2020-10-27
- This article explains in detail the difficult problems and solutions faced by 3D cameras
- DolphinScheduler使用系统时间
- Stock suspension
- 1181: integer parity sort
- Which securities company is better and safer to choose when opening an account for the inter-bank certificate of deposit fund with mobile phone
- 1181:整数奇偶排序
- 2022-06-27:给出一个长度为n的01串,现在请你找到两个区间, 使得这两个区间中,1的个数相等,0的个数也相等, 这两个区间可以相交,但是不可以完全重叠
- 基于宽表的数据建模
- What is online account opening? Is it safe to open an account online now?
猜你喜欢
随机推荐
静态代码块永远先执行? 格局小了!!!
自动转换之-面试题
This article explains in detail the difficult problems and solutions faced by 3D cameras
Full link service tracking implementation scheme
Regular verification of mobile phone number and email [easy to understand]
RESTful风格
Which securities company is better and safer to choose when opening an account for the inter-bank certificate of deposit fund with mobile phone
JVM系列(2)——垃圾回收
Implementation of single sign on
2022-06-27:给出一个长度为n的01串,现在请你找到两个区间, 使得这两个区间中,1的个数相等,0的个数也相等, 这两个区间可以相交,但是不可以完全重叠
File operations in QT
Screen settings in the source code of OBS Live Room
Expérience d'optimisation SQL: de 30248 secondes à 0001 secondes
详解final、finally和finalize
Redis5.0 slot migration, free play (single machine migration cluster)
SQL optimization experience: from 30248 seconds to 0.001 seconds
布隆过滤器 课程研究报告
PMP考试重点总结八——监控过程组(2)
[ybtoj advanced training guidance] class roll call [string hash]
图解MySQL的binlog、redo log和undo log









