当前位置:网站首页>2020.3.3 notes async/await and promise and Then processes and threads
2020.3.3 notes async/await and promise and Then processes and threads
2022-06-25 04:24:00 【Robin Luo Bing】
One 、 Processes and threads
1、 The main difference between processes and threads is that they are different ways of operating system resource management
2、 The process has a separate address space , Threads have no separate address space
3、 In short , A program has at least one process , A process has at least one thread
4、 Low thread execution cost , But it is not conducive to the management and protection of resources ; And the process is the opposite
5、 A process is an execution of a program on a computer . When you run a program , You start a process
6、 Threads are the smallest unit of execution , And the process is made up of at least one thread . How to schedule processes and threads , It's entirely up to the operating system , The program itself can't decide when to execute , How long does it take
7、 According to the process and thread settings , Operating systems are roughly divided into the following types :
(1) Single process 、 Single thread ,MS-DOS Roughly this operating system ;
(2) Multi process 、 Single thread , Most of the UNIX( And UNIX Of LINUX) It's this operating system ;
(3) Multi process 、 Multithreading ,Win32(Windows NT/2000/XP etc. )、Solaris 2.x and OS/2 It's all this operating system ;
(4) Single process 、 Multithreading ,VxWorks It's this operating system .
Two 、async/await and promise and .then
1、https://blog.fundebug.com/2018/12/10/understand-async-await-and-promise-by-8-pictures/ 8 This picture allows you to see step by step async/await and promise Execution order of
2、https://segmentfault.com/a/1190000012806637 10 Minute comprehension JS Execution mechanism of engine
3、https://segmentfault.com/a/1190000007535316 understand JavaScript Of async/await
4、https://es6.ruanyifeng.com/#docs/promise Promise object
5、https://www.runoob.com/w3cnote/javascript-promise-object.html JavaScript Promise object
边栏推荐
- L'épée leetcode fait référence au chemin leetcode de l'offre II 091 pour peindre la maison [planification dynamique] heroding
- Exercise: how difficult is it to simulate the blessing lottery two-color ball - China 500W grand prize? Just run the code.
- 文本关键词提取:ansj
- Smart contract learning materials
- AI quantitative transaction (II) -- tushare financial data framework
- Lecture record: new application of inertial navigation - inertial measurement
- 智慧风电:数字孪生 3D 风机智能设备运维
- Cesium graphic annotation circle, square, polygon, ellipse, etc
- navicat可不可以直接操作安卓数据库SQLite
- Coinlist how to operate the middle lot number security tutorial
猜你喜欢

Hello CTP (II) -- Introduction to CTP

acmStreamOpen返回值问题

Cesium drag 3D model

Read lsd-slam: large scale direct monolithic slam

95% of programmers fish here

Siddhartha: the book of life can be regurgitated frequently

Is opencv open source?

Vigilance against over range collection of privacy - ten mobile app violations

DAP数据调度功能完善说明

数字时代的“文艺复兴”?起底数字藏品,让人欢喜让人愁
随机推荐
Development of trading system (III) - risk control system
1.初识半音阶口琴
文本关键词提取:ansj
Smart wind power: operation and maintenance of digital twin 3D wind turbine intelligent equipment
【LeetCode】22. bracket-generating
Cesium 拖拽3D模型
How to use ide to automatically sign and debug Hongmeng application
冷热酸甜、想成就成?冷酸灵母公司登康口腔欲在深交所主板上市
What is the difference between learning code, rolling code and fixed code? The number of repeated codes, coding capacity and the principle of rolling code
Simple integration of client go gin -update
MySQL order by
Hot and cold, sweet and sour, want to achieve success? Dengkang oral, the parent company of lengsuanling, intends to be listed on the main board of Shenzhen Stock Exchange
无法安装redis接口
numpy np tips: numpy数组的squeeze等处理
Intel 13th generation core showed its true colors for the first time: 68mb cache improved significantly
Hello CTP (I) - basic knowledge of futures
@RequestBody解决获取参数为null
Hello CTP (V) -- CTP position calculation
La gamme NFT Color, qui représente la diversité, est en ligne sur la plate - forme du marché Sandbox
Laravel document sorting 8. Middleware