@param {number} pid PID of process running the task.