Beruflich Dokumente
Kultur Dokumente
Homework-1
Submitted By:
Section: E - 3004
Roll_No: RE3004B77
Group: 2
Course_code: 1604
Subject_code: CAP316
Date_Of_Submission: 02/09/2010
Submitted To:
Miss Jasleen
1 Enumerate the benefits of Micro-kernel design.
Ans:
A microkernel is an operating system kernel that provides only a small set
core functionality which is required to execute with kernel privileges. A
microkernel is a computer kernel that provides the mechanisms needed to
implement an operating system, such as low-level address space
management, thread management, and inter-process communication
Benefits of Micro_kernel
Ans:
Symmetric Multiprocessing (SMP) has been used extensively in the PC
market to bring high performance to the desktop PC. SMP allows multiple
identical processing subsystems on a single chip, SMP will allow advances in
mobile applications and devices
Benefits of SMP
Example
Linux.
Unix
Windows 2000
3. Determine the causes behind certain errors that the designer of
an Operating System might face.
Ans:
• Some time operating confuse which process execute or not when more
then one process are running suddenly close all the process and
operating system does not work it hanged.
• Sometimes errors in the operating system will cause the computer not
to work correctly with some peripheral devices such as printers.
Ans:
Overhead : The additional time taken by the memory manager while the
program is running
4.
b) Also, prepare Gantt charts and determine the average waiting
time for the following set of processes using FCFS, SJF (non-pre-
emptive) and RR (quantum=4 ms):
Process P1 P2 P3 P4 P5 P6
Name:
Burst Time 5 12 7 2 10 4
(in ms):
Ans:
FCFS
SJF
Round Robin (RR)
Quantum = 4
5.
a) Suggest a few reasons behind suspension of a process.
2. when one process in main memory which was blocked & there
is another process ready to execute, but waiting in
secondary memory, then the process in main memory is
suspended.
5.
b) A process switch may occur any time that the OS has gained
control from the currently running process. Suggest the possible
events that may give the control to OS.
Ans:
Some applications may be causing a conflict. Many times Runtime errors are a result of
incompatibility between two or more programs. Close all the applications are currently
using (opened programs) .
We can solve that type of problem using open the Windows Task Manager box and fix
the problems.
(1) Ctrl + Alt + Delete opens the dialog box of Windows Security, in that it contains a
Task Manager button; click on that.
6.
Long-term scheduler
• First Come First Served (FCFS): it's essentially a FIFO scheme. All job
requests (e.g. a submission of a batch program) those jobs come first
that are execute first.
6.
b) Suppose that a short term scheduler favours those processes that
have used the CPU for least amount of time in the recent past.
Justify, why this algorithm will eventually (or indirectly) favour the
I/O-bound processes and not yet starve the CPU-bound processes
completely.
Ans:
The short-term scheduler, often termed the dispatcher, executes most
frequently(every few hundredths of a second) making fine-grained decisions
as to which process to move to Running next.
The short-term scheduler is invoked whenever an event occurs which
provides the opportunity, or requires, the interruption of the current process
and the new (or continued) execution of another process.