Hard real-time:
Secondary storage limited or absent, data stored in short term
memory, or read-only memory (ROM)
Conflicts with time-sharing systems, not supported by
general-purpose operating systems.
Soft real-time:
Limited utility in industrial control of robotics
Useful in applications (multimedia, virtual reality) requiring
advanced operating-system features.
diskcopy
24)
1) Throughput – number of processes that complete their execution
pe
2) Turnaround time – amount of time to execute a particular process
3) Waiting time – amount of time a process has been waiting in the
ready queue 4) Response time – amount of time it takes from when
Multi programming
The concept of multiprogramming is that the operating system keeps
several jobs in memory simultaneously.
Thus the Linux uses different scheduling classes for time-shared and
real-time processes.
Process Termination:
• Abort all deadlocked processes.
• Abort one process at a time until the deadlock cycle is
eliminated.
• In which order should we choose to abort?
1) Priority of the process.
2) How long process has computed, and how much longer to
completion.
3) Resources the process has used.
4) Resources process needs to complete.
5) How many processes will need to be terminated?
6) Is process interactive or batch?
Resource Preemption:
Selecting a victim – minimize cost.
Rollback – return to some safe state, restart process for that
state.
Starvation – same process may always be picked as victim,
include number of rollback in cost factor.
Dynamic Loading:
o Routine is not loaded until it is called
o Better memory-space utilization; unused routine is never
loaded.
o Useful when large amounts of code are needed to handle
infrequently occurring cases.
o No special support from the operating system is required
implemented through program design.
Dynamic Linking:
Linking postponed until execution time.
Overlays:
• Keep in memory only those instructions and data that are
needed at any given time.
• Needed when process is larger than amount of memory
allocated to it.
• Implemented by user, no special support needed from
operating system, programming design of overlay structure is
complex.
Best-fit: Allocate the smallest hole that is big enough; must search
entire list, unless ordered by size. It produces the smallest leftover
hole.
Worst-fit: Allocate the largest hole; must also search entire list.
Produces the largest leftover hole.
First-fit and best-fit are better than worst-fit in terms of speed and
storage utilization.
49) What is fragmentation? Different types of fragmentation?