Copyonwriteteknik
Copyonwriteteknik, commonly known as copy-on-write (CoW), is a technique in computer science that delays copying of data until a write operation occurs. The basic idea is to allow multiple users or processes to share the same data blocks as long as they remain unchanged. When a write happens, only the modified portions are copied and updated, while the original data remains accessible to readers.
The mechanism relies on sharing references to data rather than duplicating it upfront. Initially, a single
CoW is widely used in filesystems, databases, and memory management. Filesystems such as ZFS, Btrfs, and APFS
Benefits of copy-on-write include reduced unnecessary copying, efficient snapshot and rollback capabilities, and improved data integrity