Copy-on-Write or CoW makes sure that the memory is not wasted by creating a copy of the data, modifying it, and then saving the modified data to a new location until the changes are final.