28.11.2014 Views

System call - Processi, thread

System call - Processi, thread

System call - Processi, thread

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Esempio: gestore del SIGCHLD<br />

#include <br />

void handler(int);<br />

main()<br />

{ int PID, i;<br />

PID=fork();<br />

if (PID>0) /* padre */<br />

{ signal(SIGCHLD,handler);<br />

for (i=0; i8);}<br />

M-fosset - Sistemi Operativi 2004-2005

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

Saved successfully!

Ooh no, something went wrong!