You are on page 1of 6

Dr.T.

THIMMAIAH INSTITUTE OF TECHNOLOGY


(Estd. 1986) Oorgaum, Kolar Gold Fields, Karnataka – 563120
(Affiliated to VTU, Belgaum, Approved by AICTE - New Delhi)
NAAC Accredited 'A' Grade

Real Time Systems (18EC731) Seminar


on
Multi-Tasking Approach
Presented
by
NAME : Harsha S USN : 1GV20EC011
Semester : VII Academic Year : 2023-24

Course Instructor : Prof. Deepa B M


Dept. of Electronics and Communication Engg.
Dr. T Thimmaiah Institute of Technology, KGF.
Date : 08/12/2023

1
Multi-Tasking Approach 2023-24

Multi-Tasking Approach
• The design and programming of large real-time systems is eased if
the foreground/background partitioning can be extended into
multiple partitions to allow the concept of many active tasks.
• At the preliminary design stage each activity is considered to be a
separate task. Computer scientists use the word process rather than
task but this usage has not been adopted because of the possible
confusion which could arise between internal computer processes
and the external process on the plant.
• The implications of this approach are that each task may be carried
out in parallel and there is no assumption made at the preliminary
design stage to how many processors will be used in the system.

2
Dept. of ECE, Dr.TTIT, KGF
2023-24
Multi-Tasking Approach

The implementation of a multi-tasking system requires the ability to:


• create separate tasks;
• schedule running of the tasks, usually on a priority basis;
• share data between tasks;
• synchronize tasks with each other and with external events;
• prevent tasks corrupting each other; and
• control the starting and stopping of tasks.
The facilities to perform the above actions are typically provided by a
real-time operating system (RTOS) or a combination of RTOS and a
real-time programming language.

3
Dept. of ECE, Dr.TTIT, KGF
Multi-Tasking Approach 2023-24

Two types of instructions exist:


Primitive instructions:
• Guaranteed implementation and correctness by the system.
• User only needs syntax and semantics description.
• Requires some understanding of the computer system.
• Based on system hardware (e.g., memory arbiter).
Non-primitive instructions:
• User-defined instructions built from primitive instructions.
• May need special language and operating facilities for real-time
systems.

4
Dept. of ECE, Dr.TTIT, KGF
Multi-Tasking Approach 2023-24

Real-time systems require special language and operating


facilities to handle potential problems arising from multi-
tasking, such as:
• Timing delays and inaccuracies.
• Resource conflicts.
• Deadlocks.
The examples will illustrate how these problems can arise and
how special language and operating facilities can help to
prevent or mitigate them.

5
Dept. of ECE, Dr.TTIT, KGF
THANK
YOU
6

You might also like