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.

Segnali: altre system <strong>call</strong><br />

alarm:<br />

unsigned int alarm(unsigned int N)<br />

• imposta in timer che dopo N secondi invierà al processo il segnale<br />

SIGALRM<br />

• ritorna:<br />

» 0, se non vi erano time-out impostati in precedenza<br />

» il numero di secondi mancante allo scadere del time-out<br />

precedente<br />

NB: l’azione di default associata a SIGALRM è la<br />

terminazione.<br />

M-fosset - Sistemi Operativi 2004-2005

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

Saved successfully!

Ooh no, something went wrong!