当前位置:网站首页>^25 processes and threads
^25 processes and threads
2022-06-09 04:49:00 【sanda_ nd】
1、 process : An execution of a program , It has a unique memory space ( Can pass window Task manager Check the process )
2、 Threads :
- An independent unit within a process
- A complete process of program execution
- CPU Minimum scheduling unit of
3、 Related content :
- The application must run on a process of a process
- There is at least one running thread in a process : The main thread , Automatically created after the process starts
- Multiple threads can be run simultaneously in a process , We would say that programs are multithreaded
- Data in a process can be shared by multiple threads
- Data between multiple processes cannot be shared directly
- Thread pool : A container that holds multiple thread objects , Realize the reuse of Thread objects
4、 Related issues :
- What is multiprocessing and multithreading ?
many process : A program can start multiple instances to run at the same time
many Threads : In a process , There are multiple threads running at the same time
- Compare single and multithreaded ?
single Threads :( advantage : Sequential programming is easy to understand )( shortcoming : Low efficiency )
many Threads :( advantage : Can effectively improve CPU Utilization ratio )( shortcoming : Creating multithreading overhead 、 Switching overhead between threads 、 Deadlock and state synchronization )
- JS Single thread or multi thread ?
JS It's single threaded
But use HTML5 Medium Web Worker It can be multithreaded
- Is the browser running single threaded or multi-threaded ?
All are many Thread running
- Is the browser running in a single process or multiple processes ?
There are plenty of them single process , There are plenty of them many process
边栏推荐
- Number precision-- use / instance
- Mmdet detection box font color modification
- 2022 safety officer-b certificate work certificate title and online simulation examination
- TypeScript 的内置对象
- Built in objects for typescript
- [6.824 distributed system] LEC 6 & 7: fault tolerance: raft
- Nacos1.1.4版本本地源码启动
- Win10注册表无法保存对权限所作的更改拒绝访问
- ASP. Net core build scheduling service - use generic host with quartz Net
- Make in-depth research and summary, go to a higher level, and make new year's resolutions
猜你喜欢

【6.824分布式系统】LEC 6&7: Fault Tolerance: Raft

View local public IP

Rendering pipeline ---- easy to understand and introduce to the interviewer

Database connection problem, unable to obtain connection after version change

How to calculate the rarity of NFT?

数据库的三大范式

API 网关 Apache APISIX 在 AWS Graviton3 上的安装与性能测试

(5) Bidirectional data binding

Keepalived configure virtual IP

“迪文杯”淄博技师学院电气工程系师生技能比武活动成功举办
随机推荐
JVM interview
2022 safety officer-c certificate examination practice questions simulated examination platform operation
StepN分析
Why do it systems need observability?
Rendering pipeline ---- easy to understand and introduce to the interviewer
Detailed explanation of MySQL field types
OpenGL 01 - créer une fenêtre
Typescript learning [9] generic
App website applet vulnerability search test service
MySQL queries which table in the database has the most fields
P1743 Audiophobia
[W806捣鼓手记]FPU性能简单测试——2022.05.23
Just now, we received a letter of thanks from the Beijing Organizing Committee for the Winter Olympics
2022年R2移动式压力容器充装考试模拟100题及模拟考试
TypeScript学习【5】 类类型
Give an example to illustrate the cell and num of lstmcell in TF_ What does unit mean
(5) Bidirectional data binding
Applets have become a must for super apps, competing for private domain "reserve"
Mmdet detection box font color modification
Typescript learning [7] advanced types: Union type and cross type