Top "Copy-on-write" questions

What is copy-on-write?

I would like to know what copy-on-write is and what it is used for? The term 'copy-on-write array' is mentioned …

data-structures copy-on-write
Legality of COW std::string implementation in C++11

It had been my understanding that copy-on-write is not a viable way to implement a conforming std::string in C++11, …

c++ string c++11 stdstring copy-on-write
How to implement Copy-on-Write?

I want to implement a copy-on-write on my custom C++ String class, and I wonder how to... I tried to …

c++ string copy-on-write
remove elements from CopyOnWriteArrayList

I am getting an exception when I try to remove elements from CopyOnWriteArrayList using an iterator. I have noticed that …

java copy-on-write
Does (string) 'hard-copy' a string?

PHP uses a copy-on-modification system. Does $a = (string) $a; ($a is a already string) modify and copy anything? Especially, this …

php string copy-on-write
Are Golang function parameter passed as copy-on-write?

I've got the following function: func checkFiles(path string, excludedPatterns []string) { // ... } I'm wondering, since excludedPatterns never changes, should I optimize …

go parameter-passing copy-on-write
How does copy-on-write work in fork()?

I want to know how copy-on-write happens in fork(). Assuming we have a process A that has a dynamical int …

c linux unix fork copy-on-write