V2EX  ›  英汉词典
Enqueued related words: Memory-Page, Virtual-Memory

Copy-on-Write

释义 Definition

写时复制(COW):一种优化策略/机制——多个对象(如内存页、文件块、数据结构)起初共享同一份底层数据;只有当某一方尝试修改时,系统才复制出一份私有副本供其写入,从而减少不必要的拷贝并节省内存/磁盘与时间。(在操作系统、文件系统、虚拟机与函数式数据结构中很常见。)

发音 Pronunciation (IPA)

/ˌkɑːpi ɑːn ˈraɪt/(美)
/ˌkɒpi ɒn ˈraɪt/(英)

例句 Examples

The system uses copy-on-write to save memory.
系统使用写时复制来节省内存。

After a fork, the parent and child processes share pages via copy-on-write until one of them writes to a page, triggering a private copy.
在 fork 之后,父进程和子进程通过写时复制共享内存页,直到其中一方写入某个页时才触发创建私有副本。

词源 Etymology

copy-on-write 由三个常见词组成:copy(复制)+ on(在……时)+ write(写入)。该术语源自计算机系统领域,用来概括一种“先共享、后按需复制”的设计思想:读操作尽量复用共享资源,写操作才付出复制成本。

相关词 Related Words

文学与著作 Literary Works

  • Operating Systems: Three Easy Pieces(Remzi H. Arpaci-Dusseau & Andrea C. Arpaci-Dusseau)——在进程与虚拟内存相关章节常提及写时复制思想。
  • Linux Kernel Development(Robert Love)——讨论进程创建、内存管理时涉及 COW。
  • Advanced Programming in the UNIX Environment(W. Richard Stevens 等)——讲解 fork() 与相关实现细节时常提到 COW。
  • Computer Systems: A Programmer’s Perspective(Bryant & O’Hallaron)——在虚拟内存与进程部分通常会介绍写时复制的概念与用途。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1997 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 12:21 · PVG 20:21 · LAX 04:21 · JFK 07:21
♥ Do have faith in what you're doing.