24.12.2012 Views

Chapter 4 - DSpace at Waseda University

Chapter 4 - DSpace at Waseda University

Chapter 4 - DSpace at Waseda University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Appendix<br />

critical task and non-critical task. Moreover, according to whether CPU is conceded or not<br />

when high priority task arrives, it can be divided in to preemptive task and non-preemptive<br />

task. Common task concedes CPU to high priority task, which is preemptive task. However,<br />

when task is processing critical section, it cannot be prior occupied.<br />

Methods of giving priority to task are st<strong>at</strong>ic priority method and dynamic priority method.<br />

St<strong>at</strong>ic priority is a method th<strong>at</strong> never changes priority th<strong>at</strong> was assigned from scheduler and<br />

dynamic priority means method th<strong>at</strong> changes dynamically according to process th<strong>at</strong> will be<br />

occurred. The dynamic priority method can be scheduled more effectively more than st<strong>at</strong>ic<br />

priority. The dynamic priority algorithm mostly used in commercial real-time OS, such as<br />

VxWorks or PSOS, are fixed priority scheduling and Earliest Deadline First (EDF) method.<br />

Both of algorithms are preemptive scheduling method and they are algorithm th<strong>at</strong> assumes<br />

single processor.<br />

Firstly, as shown in the name, fixed priority scheduling is a method th<strong>at</strong> gives fixed priority<br />

to every task. It was a problem about how to grant fixed priority. In 1973, Liu and Laryland<br />

proposed algorithm called r<strong>at</strong>e-monotonic scheduling. This method proposed to grant high<br />

priority to task with short period (premise: every task is periodic task and deadline of task is<br />

equal to period of task). Due to simplicity of r<strong>at</strong>e-monotonic scheduling and its m<strong>at</strong>hem<strong>at</strong>ical<br />

characteristic which makes it possible to schedule anytime Utiliz<strong>at</strong>ion Factor (UF) is under<br />

0.67, it was often used for these few decades.<br />

EDF is an algorithm th<strong>at</strong> grants higher priority to task th<strong>at</strong> is shorter to deadline. For this<br />

reason, it is also called as deadline driven algorithm. This algorithm can be used to schedule<br />

not only periodic task but also all other tasks on single processor architecture. It was proved<br />

th<strong>at</strong> it is most optimal m<strong>at</strong>hem<strong>at</strong>ically.<br />

86

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

Saved successfully!

Ooh no, something went wrong!