Académique Documents
Professionnel Documents
Culture Documents
BASED ON
TASK PAIR SCHEDULING CONCEPT
Guided By:
Mrs. Khan Mam
Subitted By:
Komal More (BE11F05F030)
Geeta Popalghat (BE11F05F039)
Gauravi Patil (BE11F05F061)
INTRODUCTION
real-time system and real-time image processing tasks for near-field area
reconstruction and distance estimation as a prerequisite for motion
planning in unstructured environment or an outdoor area.
Ensuring hard real-time with complex algorithms
on modern computer architectures is difficult to realize due to
unpredictable execution times of algorithms with data dependent
runtime. To solve this problem a scheduling scheme based on task
pairs can be used to avoid an unpredicted state after a deadline
violation.
The scheduling solution to support the AnyTime concept:the extension of
the Real-Time Application Interface (RTAI) and the real-time image
processing task based on the SURF algorithm.
AnyTime Scheduling:
-The AnyTime scheduler is a hard real-time scheduler in the sense
that it always guarantees the completion of either the MP or the EP
before the deadline.
-A utilization factor equal or less than 1 denotes a feasible
schedule on one CPU core in a system with n independent,
preempt able tasks with deadlines equal to their periods. This
behavior can be expressed by the following equation .
B. AnyTime Implementation
Towards an AnyTime scheduler, its needed to extend
the
TCB with the new timing parameters to handle the new
introduced AnyTime task construct
Load ballancing criteria: To support multi core systems
load balancing was implemented to distribute new
created
tasks on available CPU cores.
A new created task is bound on the CPU core
with the lowest utilization factor. Alternatively it is
possible to bind a task on a specific core.
Scheduler Modifications:
Each moment the current time passes the release time
of the head element of the LRT list, the scheduler
migrates this task as head element to the ready queue
of the current CPU representing the runable task with
the highest priority.
C.
ANYTIME-SURF
The AnyTime-SURF is an extension of the standard Speeded Up
Robust Features (SURF) algorithhard real-time environment. SURF is used
for an efficient detection and description of points of interest in images.
SURF transforms the image information into gradient-features that are
robust to changes in distance, illumination, rotation, scaling and noise. Each
point of interest, called key point is described by a unique descriptor.
A. Concept
The advantage of the AnyTime-SURF is that a first result is available after
a very short computational time.
The initial results are improved as long as computational time is available.
The AnyTime-SURF algorithm provides corresponding key
points in stereo vision images as results.
To obtain these key points, the AnyTime-SURF solves the following tasks:
1) Calculation of the key points in the left and right image.
2) Searching for corresponding key points.
3) Sectioning MP and EP: As denoted in section IV, the calculation steps of the
algorithm must be separated into a Main- and an ExceptionPart . The purposes of the
ExceptionParts are:
Task 1 and task 2:
Setting flags for memory management.
Setting semaphores for process synchronization.
Saving the results.
Release RTAI heap memory.
Matching task:
Saving the results.
Delete key points and their descriptors of the current
matching.
Setting flags for memory management.
4) Memory Concept: Image size and the amount of prospective key points are not
known before the program
starts. Therefore it is impossible to allocate all memory in advance. Dynamic memory
is allocated on the RTAIheap and is performed in hard real-time mode.
B. Behavior when Missing a Deadline
If the deadline DLMP of a MainPart is violated, the Main-Part will be canceled. There
are different results for further processing, depending on the time of suspension.
Concerning task 1 and task 2: If the calculation of the first octave is finished before
DLMP is violated no useful intermediate results are available. All results are discarded
and the initial start state of the task is resumed.
MEASUREMENTS
To verify the performance of the Anytime-
APPLICATIONS
There are more applications whose runtimes
based planning.
A certain amount of samples are needed to
get first results. More samples may be
processed to get a better solution.
After first results are available the process
may be stopped if the deadline
is reached. Also in this case, the best
solution may be collected by the EP.
CONCLUSION
This paper presented an implementation of an