3
$\begingroup$

From my understanding, the EDF (Earliest Deadline First) rule is essentially an iterative "version" of the EDD (Earliest Due Date) rule, which allows for preemption. At every point in time, EDF looks at all the processes present and sorts them into the processes with the earliest deadlines first and the latest deadlines the last.

This means that if at time t1 we only have a process P1 with deadline d1 running, and no other processes; then P1 will run. But if at t2 we have a new process P2 with deadline d2 (such that d1 > d2), then P1 will be interrupted and P2 will be executed. Once P2 is finished, if only P1 is present then it is executed otherwise the deadlines of P1 and the next process are compared and the one with the earliest deadline is executed.

Is this the only difference or any there any more?

$\endgroup$

1 Answer 1

2
$\begingroup$

Yes, that's right. In fact I think we can say that EDD is a special case of EDF, where all the processes have arrived at the same time.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.