当前位置:网站首页>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 .
边栏推荐
- 2022-06-27:给出一个长度为n的01串,现在请你找到两个区间, 使得这两个区间中,1的个数相等,0的个数也相等, 这两个区间可以相交,但是不可以完全重叠
- 自动转换之-面试题
- 线程的生命周期
- 2020-10-27
- Custom exception classes and exercises
- Rman Backup Report Ora - 19809 Ora - 19804
- Campus honey decoration of APP course design (e-commerce platform)
- Linux下安装redis 、Windows下安装redis(超详细图文教程)
- Data visualization makes correlation analysis easier to use
- Fastjason filter field
猜你喜欢
Dbeaver连接人大金仓KingbaseES V8(超详细图文教程)
P2394 yyy loves Chemistry I
Valentine's Day - VBS learning (sentences, love words)
Dbeaver connects to kingbasees V8 (ultra detailed graphic tutorial)
Common test method used by testers --- orthogonal method
布隆过滤器 课程研究报告
For the development of short video app, the elder warned me to choose the open source code
Apache Doris 成为 Apache 顶级项目
Music website design based on harmonyos (portal page)
1180:分数线划定/P1068 [NOIP2009 普及组] 分数线划定
随机推荐
What is online account opening? Is it safe to open an account online now?
Expérience d'optimisation SQL: de 30248 secondes à 0001 secondes
Edit the live broadcast source code with me. How to write the live broadcast app code
A classic JVM class loaded interview question class singleton{static singleton instance = new singleton(); private singleton() {}
分而治之之经典Hanoi
rman备份报ORA-19809 ORA-19804
Calcul des frais d'achat et de vente d'actions
Apache Doris 成为 Apache 顶级项目
How to implement two factor authentication MFA based on RADIUS protocol?
1182:合影效果
PMP考试重点总结八——监控过程组(2)
全局异常处理器与统一返回结果
函数的分文件编写
Dbeaver connects to kingbasees V8 (ultra detailed graphic tutorial)
两道面试小Demo
Test cases for learning the basic content of software testing (II)
1182: group photo effect
Implementation of single sign on
理解IO模型
全链路业务追踪落地实践方案