28.11.2014 Views

System call - Processi, thread

System call - Processi, thread

System call - Processi, thread

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

fork()<br />

int fork(void);<br />

• la fork non richiede parametri<br />

• restituisce un intero che:<br />

» per il processo creato vale 0<br />

» per il processo padre è un valore positivo che<br />

rappresenta il PID del processo figlio<br />

» è un valore negativo in caso di errore (la<br />

creazione non è andata a buon fine)<br />

M-fosset - Sistemi Operativi 2004-2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!