Datadog interview question

How to efficiently manage file operations in a multi-process task