博客 / 詳情

返回

《Programming from the Ground Up》閲讀筆記:p147-p180

《Programming from the Ground Up》學習第9天,p147-p180總結,總計34頁。

一、技術總結

1.Physical memeory

p152, Physical memory refers to the actual RAM chips inside your computer and what they contain.

物理地址指的RAM,即我們買電腦所説的“內存”。

2.Virtual memory

p152, Virtual memory is the way your program thinks about memory。

3.Resident Set Size(常駐集大小)

p155, The amount of memory that your program crrently has in physical memory is called its resident set size, and can be vieed by using the program top. The resident set size is listed undeer the column lablelled "RSS".

在Ubuntu(Ubuntu 22.04)系統上執行top命令時, 不是RSS列,是RES列,RES是Resident(駐留)的縮寫。

4.memory manage

(1)dynamic memory manage

第9章主要講解與“內存”相關的知識:如物理內存、虛擬內存、內存管理等。唯一可惜的一點就是本書寫作時間較早,代碼運行起來確實不方便,也不好修改,先往下看吧。

二、英語總結

1.intermediate vs mediate

從字面上總是容易混淆,作為形容詞,兩者其實是完全不同的意思。

(1)intermediate

adj. emphasize being "in-between" in terms of position, level, or time,即我們常説的“中間的”。

(2)mediate

adj. exhibiting indirect causation, connection, or relation,即我們常説的“間接的”。

2.wind up

p154, They wind up spending more time just swapping memory on and off disk than they do actually processing it.

wind up 在這裏的意思是 as a result of certain condition, 強調這是一種unexpected outcome。

3.be through with

p156, When you're done with it, you tell deallocate that you are through with it.

在這裏,be through with 的意思是“having finished doing sth”。

三、其它

國慶節本是一個快樂的節日,今年的國慶節卻讓人很難開心起來。一位親戚走了,從輩分上來説,我這一輩稱其為“太爹”,屬於我爺爺奶奶那一輩的人。這些看着我長大的長輩們一個一個離我而去,暗示着時間的一去不返,也暗示着我與家鄉的羈絆也越來越少。

四、參考資料

1. 編程

(1)Jonathan Bartlett,《Programming From The Ground Up》:https://book.douban.com/subject/1787855/

2. 英語

(1)Etymology Dictionary:https://www.etymonline.com

(2) Cambridge Dictionary:https://dictionary.cambridge.org


歡迎搜索及關注:編程人(a_codists)

user avatar TwilightLemon 頭像 fedl 頭像 cyoahs 頭像 haoqingwanqiandehongcha 頭像 software_arch 頭像
5 位用戶收藏了這個故事!

發佈 評論

Some HTML is okay.