implement execute_process function in OS