当前位置:网站首页>Processes and threads
Processes and threads
2022-07-03 11:18:00 【Cao Changqing】
1.


① A program enters memory , The corresponding resources will be allocated ( Mainly memory space ), So processes are used to allocate memory space ( Storing data ). Threads are not allocated memory , They are different computing units in the same memory space ( Different instructions , No data involved ).
in short , The process is allocated memory space to put data , Threads execute instructions one by one .
② Same code ( Instructions ) Can be executed by multiple threads ( It may be under different threads , The parameters of the same code are different ).
For example, the same function add(i, j), Threads a Under the i And j Namely 3、4, And threads b Under the i And j Namely 5、6.

③
边栏推荐
猜你喜欢

"Core values of testing" and "super complete learning guide for 0 basic software testing" summarized by test engineers for 8 years

进程与线程

公司测试部门来了个00后卷王之王,老油条感叹真干不过,但是...

2021 reading summary (continuously updating)

【obs】obs的ini格式的ConfigFile

Google Earth engine (GEE) - ghsl global population grid dataset 250 meter resolution

(二)进制

(2) Base

MATLAB extrait les données numériques d'un fichier txt irrégulier (simple et pratique)

php服务器 与redis交互大量CLOSE_WAIT分析
随机推荐
My understanding of testing (summarized by senior testers)
POI excel 单元格换行
MATLAB提取不規則txt文件中的數值數據(簡單且實用)
10. Nacos source code construction
解决undefined reference to `__aeabi_uidivmod‘和undefined reference to `__aeabi_uidiv‘错误
Illustrated network: what is virtual router redundancy protocol VRRP?
In the middle of the year, I have prepared a small number of automated interview questions. Welcome to the self-test
"Core values of testing" and "super complete learning guide for 0 basic software testing" summarized by test engineers for 8 years
Overview of testing theory
IIS does not take effect after modifying the configuration information
Solve undefined reference to`__ aeabi_ Uidivmod 'and undefined reference to`__ aeabi_ Uidiv 'error
The testing department of the company came to the king of the Post-00 roll, and the veteran exclaimed that it was really dry, but
Tablespace creation management and control file management
Oracle 11g single machine cold standby database
The manuscript will be revised for release tonight. But, still stuck here, maybe what you need is a paragraph.
Encapsulation attempt of network request framework of retro + kotlin + MVVM
2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func mai
What kind of living condition is a tester with a monthly salary of more than 10000?
EPS电动转向系统分析
我对测试工作的一些认识(资深测试人员总结)