14.08.2013 Views

Scheduling di breve termine - Dipartimento di Matematica e ...

Scheduling di breve termine - Dipartimento di Matematica e ...

Scheduling di breve termine - Dipartimento di Matematica e ...

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.

<strong>Scheduling</strong> <strong>di</strong> <strong>breve</strong> <strong>termine</strong> in Unix tra<strong>di</strong>zionale<br />

• a code multiple, round-robin<br />

(fino a 4.3BSD e SVR3)<br />

• ogni processo ha una priorità <strong>di</strong> scheduling;<br />

numeri più gran<strong>di</strong> in<strong>di</strong>cano priorità minore<br />

• Feedback negativo sul tempo <strong>di</strong> CPU impiegato<br />

• Invecchiamento dei processi per prevenire la starvation<br />

• Quando un processo rilascia la CPU, va in sleep in attesa <strong>di</strong> un event<br />

• Quando l’evento occorre, il kernel esegue un wakeup con l’in<strong>di</strong>rizzo dell’evento<br />

e tutti i processi che erano in sleep sull’evento vengono messi nella<br />

coda <strong>di</strong> ready<br />

• I processi che erano in attesa <strong>di</strong> un evento in modo kernel rientrano con<br />

priorità negativa e non soggetta a invecchiamento<br />

36

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

Saved successfully!

Ooh no, something went wrong!