Complete the sentence to explain copy-on-write.
Copy-on-write delays copying data until [1] is necessary.Copy-on-write means the system waits to copy data until it is actually changed (modified), saving resources.
Complete the sentence about memory usage in copy-on-write.
Copy-on-write helps save [1] by sharing data until changes occur.Copy-on-write saves memory by sharing the same data instead of making copies until needed.
Fix the error in the statement about copy-on-write.
Copy-on-write immediately duplicates data when a process starts, regardless of changes. This is [1].This statement is false because copy-on-write delays duplication until data is modified, not immediately.
Fill both blanks to complete the description of copy-on-write behavior.
When a process [1] data, the system creates a [2] copy to keep original data safe.
When data is modified, a private copy is made to protect the original shared data.
Fill both blanks to complete the copy-on-write dictionary comprehension.
copies = [2]: data[[2]] for [1] in processes if data is shared
This dictionary comprehension creates copies for keys in processes where data is shared, using braces and key variables.