| ▲ | edelbitter a day ago | ||||||||||||||||
But what would the equivalent "do the expensive preparation 1 time, then re-use copy-on-write memory N times" pattern look like, after reconsidering my life? | |||||||||||||||||
| ▲ | zbentley 21 hours ago | parent | next [-] | ||||||||||||||||
It looks like threads and a copy-on-write data structure or memory mapping. | |||||||||||||||||
| ▲ | cestith a day ago | parent | prev [-] | ||||||||||||||||
The manpage suggests if you need the child to be the same as the parent to exec a copy of the parent in the child right after forking. | |||||||||||||||||
| |||||||||||||||||