Documente Academic
Documente Profesional
Documente Cultură
Systems
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Mr. Kilima, F. G.
BSc. ICTM, (Mzumbe University)
MSc. Computer Science, (Makerere University)
April 9, 2015
Code of conduct
Observe the following code conduct:
Be in class on time before the lecturer.
Late
Phone
lecturer.
Strictly adhere to the timetable and deadlines
given.
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
your problems.
Observe the university rules and regulations.
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Quiz - Many.
2 Assignments @ 10%.
2 tests @ 15%.
Final exams - 50%.
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
time to evolve.
The OS is intimately tied to the hardware of
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Interaction of OS with
other components
Functions of Operating
System
Operating systems serve the following
functions:
User Interface (UI): Provides UI in such forms
as:
Command Line Interface (CLI): Uses special
programs and text based commands to send
commands to the system.
Batch interface: Commands and directives to
control the commands are entered into files,
e.g. the use of punched cards.
Graphical User Interface (GUI): Uses a window
interface with icons, a pointing device to
direct I/O, menus and keyboard to enter text.
Resource allocation and control: Regardless of the
Functions of OS - Continued
CPU scheduling: An activity in which a CPU
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Functions of OS - Continued
Memory management:
from programs.
Keep track of which memory parts are currently
Functions of Operating
System
Interrupt handling: An interrupt is a signal from
Functions of OS - Continued
File system management: The OS is responsible
Functions of OS - Continued
Virtual memory: If a computer does not have
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Functions of OS - Continued
Multiprogramming: It is the ability of the
supervision of OS.
below:
Mainframe OS: The OS which run on room sized
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Operating systems:
Important Things to Know
Only when necessary, should a computer have
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
System calls
System call is a means by which a process
Process control
File management
Directory management
Device management
Information maintenance
Interprocess communication
Miscellaneous
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Information maintenance
system calls
They are responsible for the transferring of
Interprocess communication
system calls
Processes must be able to communicate with
Interprocess communication
system calls- Contd
In shared memory model, communicating
Interprocess communication
system calls- Contd
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
responsible for:
OS design and
implementation
OS design goals
The first problem in designing an OS is to
define its goals and specification.
The design of the system will be affected by
the hardware, type of system, users of the
system etc.
There is no unique solution to the problem of
defining the requirements for an OS.
OS implementation
Once the OS has been designed, it must be
implemented.
Traditionally OS have been written in assembly
languages.
With the advent of high level programming
OS design and
implementation
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
OS implementation
Linux and Windows OS are written using C
language with small sections of assembly code
for device drivers.
Advantages of using high level programming
OS design and
implementation
OS booting
Booting is the process of starting the
OS booting- Contd
Bootstrap programs are stored in ROM or
Quiz II
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Processes
Early computers allowed only one program to be
Processes
Two or more processes may be associated with
background.
A foreground process is a process which
processes.
Process states
As a process executes, it changes its state.
The state of the process is defined in part by
occur
Ready: The process is waiting to be assigned a
processor.
Terminated: The process has finished execution.
Process states
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
CPU scheduling
It is the basic of multiprogrammed operating
CPU scheduling
For a single processor system, only one
CPU scheduling
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Nonpreemptive CPU
scheduling
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
execution.
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
Warming Up
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
BSc. ICT-M
II, BSc.
ICT-B II &
BSc. ITS II
are:
First-Come, First Served (FCFS) CPU scheduling
algorithm
Shortest Job First (SJF) CPU scheduling
algorithm
Priority CPU scheduling algorithm
Round Robin (RR) CPU scheduling algorithm
Multilevel Queue CPU scheduling algorithm
Multilevel Feedback Queue CPU scheduling
algorithm
implement.
The processes are assigned CPU in the order
Group Assignment
Discuss the strengths and weaknesses of FCFS.
Using an array data structure, write a Java
Process
Burst Time
P1
6
P2
8
P3
7
P4
3
Using SJF, the CPU would be assigned to the
processes in the order P4 , P1 , P3 , P2
algorithm.
Using an array data structure, write a Java