HF RL Explorer

Task: Understanding fork() and execv() Efficiency with Copy-on-Write

Task: Understanding fork() and execv() Efficiency with Copy-on-Write: a task in Terminal-Lego-15k (Harbor dataset). The combination of fork() and execv() appears wasteful at first glance - we copy an entire process's address space only to immediately replace it. However, modern operating systems…

The task

The combination of `fork()` and `execv()` appears wasteful at first glance - we copy an entire process's address space only to immediately replace it. However, modern operating systems implement **Copy-on-Write (COW)** optimization that makes this combination efficient.

Part of PrimeIntellect/Terminal-Lego-15k.