Photon interview question

Different between fork() and spawn() in child process?