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.

LinuxThreads<br />

• Un <strong>thread</strong> puo` terminare chiamando:<br />

void p<strong>thread</strong>_exit(void *retval);<br />

• Dove:<br />

• retval:e` il puntatore alla variabile che contiene<br />

il valore di ritorno (puo` essere raccolto da altri<br />

<strong>thread</strong>s, v. p<strong>thread</strong>_join).<br />

• E` una chiamata senza ritorno.<br />

• Alternativa: return();<br />

M-fosset - Sistemi Operativi 2004-2005

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

Saved successfully!

Ooh no, something went wrong!