CPC G06F 9/544 (2013.01) [G06F 9/44536 (2013.01); G06F 9/5016 (2013.01); G06F 13/1663 (2013.01); G06F 2209/503 (2013.01); G06F 2209/504 (2013.01)] | 20 Claims |
1. A method in a network device to mark a memory region in a memory of the network device, the method comprising:
receiving an indication to create a child process by a writer, wherein the writer writes data stored in a writer memory region of memory that is shared between the writer and a plurality of readers, wherein the writer, the plurality of readers, and the child process run on the network device;
creating the child process, the child process sharing the writer memory region with the writer;
incrementing a process counter in connection with creating the child process;
marking buffers in the writer memory region, previously allocated by the writer, to indicate the child process is accessing the buffers; and
deallocating marked buffers, wherein deallocation of buffers that were allocated prior to the child process creation are delayed.
|