当前位置:网站首页>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
边栏推荐
- @RequestBody解决获取参数为null
- Basic use of OBS browser+ browser
- "How to carry out industrial positioning" in local / Park industrial planning
- Vigilance against over range collection of privacy - ten mobile app violations
- Development of trading system (IX) -- dark pool technology
- 2. play the chromatic harmonica
- SQL, CTE, flg case problems
- Hello CTP (I) - basic knowledge of futures
- 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
- 讲座记录《捷联惯导解算的历史及发展》
猜你喜欢
Development of trading system (II) -- market data
Read lsd-slam: large scale direct monolithic slam
Development of trading system (VIII) -- Construction of low delay network
Color NFT series representing diversity launched on the sandbox market platform
【openwrt】推荐一个国内开发的openwrt的版本,iStoreOS简介,非常好用,主要是做了一些优化。解决了汉化的问题。
Finereport (sail soft) handling the problem that the histogram data label is blocked
1.初识半音阶口琴
"Grammar sugar" -- my new programming knowledge
2D 照片变身 3D 模型,来看英伟达的 AI 新“魔法”!
1. first knowledge of chromatic harmonica
随机推荐
1. first knowledge of chromatic harmonica
web3.eth. Getpendingtransactions() returns null?
讲座记录《多种空间大地测量技术的数据处理方法和应用》
[proteus simulation] Arduino uno key controls the flashing increase / decrease display of nixie tube
Communication problems in parent and child components of uniapp
Hello CTP (IV) - CTP transaction API
文本关键词提取:ansj
如何绘制产业招商地图
SEO的5大关键指标:排名+流量+会话+停留时长+跳出率
Development of trading system (I) -- Introduction to trading system
升级cmake
Openmmlab environment configuration
La gamme NFT Color, qui représente la diversité, est en ligne sur la plate - forme du marché Sandbox
How many images can opencv open?
Development of trading system (VI) -- HFT high frequency trading
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
讲座记录《捷联惯导解算的历史及发展》
Sourcetree pulls the code and prompts to fill in authentic, but the configuration cannot change the user
sql_ mode=only_ full_ group_ By's pit
Laravel document sorting 9. Blade template