Unit3 2 Marks &16
Unit3 2 Marks &16
When multiple rates of computation has followed, it is difficult to write codes for fulfilling timing
need. Multirate embedded computing systems are very common, including automobile engines,
printers, and cell phones. In all these systems, certain operations must be executed periodically, and
each operation is executed at its own rate.
A scheduling policy defines how processes are selected for promotion from the ready state to the
running state. Every multitasking OS implements some type of scheduling policy.
Schedulability means whether there exists a schedule of execution for the processes in a system that
satisfies all their timing requirements.
Utilization is the ratio of the CPU time that is being used for useful computations to the total
available CPU time. This ratio ranges between 0 and 1, with 1 meaning that all of the
available CPU time is being used for system purposes. The utilization is often expressed as a
percentage. If we measure the total execution time of all processes over an interval of time t,
then the CPU utilization is
U=T/t
9. Identify the role of Kernel in Embedded System and define it.
The kernel is the part of the OS that determines what process is running. The kernel is activated
periodically by the timer.The length of the timer period is known as the time quantum
The kernel determines what process will run next and causes that process to run. On the next timer
interrupt,the kernel may pick the same process or another process to run.
10. Choose the two major styles of inter process communication.
Shared memory
Message passing
11. Construct the task graph in which P1 and P2 each process separate inputs and then pass their
results onto P3 for further processing.
A set of processes with data dependencies is known as a task graph
The set of registers that define a process are known as its context and switching from one process’s
register set to another is known as context switching.
13. What is the use of interrupts service routines?
Input/output data transfer for peripheral devices.
Input signals to be used for timing purpose.
Real time executives/multitasking
Event driven program
14. What do you meant by Semaphore?
After assigning priorities,the OS takes care of the rest by choosing the highest-priority ready
process.There are two major ways to assign priorities:static priorities that do not change during
execution and dynamic priorities that do change
19. Distinguish the two different styles used for inter process communication.
Shared memory- Two components,such as a CPU and an I/O device,communicate through a shared
memory location. The software on the CPU has been designed to know the address of the shared
location;the shared location has also been loaded into the proper register of the I/O device.
Message passing- Message passing communication complements the shared memory model. each
communicating entity has its own message send/receive unit. The message is not stored on the
communications link,but rather at the senders/ receivers at the end points.
Waiting- A process goes into the waiting state when it needs data that it has not yet received or
when it has finished all its work for the current period
Ready- A process goes into the ready state when it receives its required data and when it enters a
new period.
Executing- A process can go into the executing state only when it has all its data, is ready to run,
and the scheduler selects the process as the next process to run.
A function is called re-entrant function when the following three conditions are satisfied:
All the arguments pass the values and some of the argument is a pointer whenever a calling
function calls it.
When an operation is not atomic, the function should not operate on any variable, which is
declared but passed by reference not passed by arguments in to the function.
That function does not call any other function that is not itself re-entrant
Process can be interrupted in between. Process can not be interrupted till it terminates
Interrupt or switches to waiting state.
If a high priority process frequently If a process with long burst time is running
Starvation arrives in the ready queue, low CPU, then another process with less CPU
priority process may starve. burst time may starve.
The execution time required to choose the next execution process,which is incurred in addition to
any context switching overhead. In general,the more sophisticated the scheduling policy,the more
CPU time it takes during system operation to implement it.
25. Propose the requirements that a solution to the critical section problem must satisfy.
Mutual Exclusion : If a process is executing in its critical section, then no other process is
allowed to execute in the critical section.
Progress : If no process is executing in the critical section and other processes are waiting
outside the critical section, then only those processes that are not executing in their remainder
section can participate in deciding which will enter in the critical section next, and the
selection can not be postponed indefinitely.
Bounded Waiting : A bound must exist on the number of times that other processes are
allowed to enter their critical sections after a process has made a request to enter its critical
section and before that request is granted.
PART-B