admin 管理员组

文章数量: 1184232

through, 一般的简写形式:thru/thro;应该推广这种简写形式;原因是,从发音的角度看,后面四个字母和一个u的发音一样一样的,没有必要。就英语的象音属性来说,只要音到,不需要这种形式化复杂化的词变。因为导致的一个直接后果就是小学生背单词比较费劲。

含义就是
*[θru:]
ad. 穿越, 从头至尾, 到底, 因为
prep. 经过, 穿过
a. 对穿的, 直达的, 完结的
【法】 直达的, 过境的, 可通行的

计算机里经典的两个词组就是:

  1. 编程语言里的switch用法,如果不加break,就代表要through后面所有的case:fall-through;
  2. 操作系统里的页缓存,如果将文件内容的改动同时写入页缓和磁盘(两者都更新):write-through。

寓意其实就是从头到尾,在这条路上,可能遇到的事情,碰到的事物,经历的步骤,都需要经历一番,才能算是走完全程,through; 隐含的意思就是所有相关的事情、步骤都需要做,需要经历。所以相对于这个单词而言,参照物是要穿过的这个东西,而隐含的是经历所有已经安排好的步骤。

这样前面两个fall-through和write-through的理解就会好受一些:

  1. fall-through;使用fall的原因也是和编写代码switch块的这个形象化表示;写代码就是从上到下,swtich的case语句也是从上到下,如果不加break,就好像是在fall,坠落,剩下的case就是要through。
  2. write-through;这里的写的操作要through两个存储单位:页缓存和磁盘。

intel文档:
Write-through (WT) — Writes and reads to and from system memory are cached. Reads come from cache lines on cache hits; read misses cause cache fills. Speculative reads are allowed. All writes are written to a cache line (when possible) and through to system memory. When writing through to memory, invalid cache lines are never filled, and valid cache lines are either filled or invalidated. Write combining is allowed. This type of cache-control is appropriate for frame buffers or when there are devices on the system bus that access system memory, but do not perform snooping of memory accesses. It enforces coherency between caches in the processors and system memory.

本文标签: 英语单词 fall write