Copy-on-write (sometimes referred to as "COW") is an optimization strategy used in computer programming . The fundamental idea is that if multiple callers ask for resources which are initially indistinguishable, they can all be given pointers to the same resource. This function can be maintained until a caller tries to modify its "copy" of the resource, at which point a true private copy is created to prevent the changes becoming visible to everyone else. All of this happens transparently to the callers. The primary advantage is that if a caller never makes any modifications, no private copy need ever be created.
copy-on-write
最新推荐文章于 2025-08-24 23:30:39 发布
Copy-on-Write(COW)是一种计算机编程中使用的优化策略。该策略允许多个调用者共享同一资源,直到其中一个调用者尝试修改其资源副本时才创建真正的私有副本,确保更改不会影响到其他调用者。此过程对调用者完全透明。
1304

被折叠的 条评论
为什么被折叠?



