GCE Advanced Level - ICT - OPERATING SYSTEM
GCE Advanced Level - ICT - OPERATING SYSTEM
2019 onwards
New syllabus
Advanced Level
Sri Lankan
1 | Page
OPERATING SYSTEM
Operating system
GUN/Linux Distribution
Red Hat
Fedora
Mint
Ubuntu, etc.
1. Process Management
2. Memory Management
3. File Management
4. Input / Output Devices or Hardware Management
5. Network /Security Management
6. Interfacing between hardware and user
PROCESS MANAGEMENT
A process is a program in execution
A program can have multiple processes
Note: -
A program does nothing unless its instructions are
executed by a CPU.
A process will need certain resources CPUtime, memory, files,
and input/output devices to accomplish its task
Resources are allocated to the process either when it is created or
while it is executing
4 | Page
Context Switch
PCB Diagram
8 | Page
Schedulers
MEMORY MANAGEMENT
Memory management is the function of an operating system
responsible for managing the memory.
Memory should be shared among multiple process.
Memory is a resource for process.
Virtual memory
Advantages
It can be larger than physical memory.
When an application requires more memory space than the
maximum memory space available in the main memory of a
computer is ready for execution , operating system uses virtual
memory system.
13 | P a g e
Page Tables
Question:-
1. Calculate the total number of pages of defined by the above
addressing scheme
26 =64bits
2.Consider the following Virtual memory address
0101110000111100
What is the page and displacement of this address.
010111 0000111100
Page Displacement
FILE MANAGEMENT
It is the manipulation of documents and data in files an a
computer.
File attributes
1. Name
2. Type
3. Location
4. Size
5. Protection
6. Time & date
File operations
1. Creating a file
2. Writing a file
3. Reading a file
4. Deleting a file
5. Moving a file
15 | P a g e
File system
Linux
Ext2/Ext3/Ext4
Reise FS
Mac OS
HFS
HFS +
16 | P a g e
NTFS VS FAT
FAT NTFS
Maximum File Size Limited Unlimited
Maximum File Name Limited Unlimited
Length
Security No Yes
Support Of Unicode No Yes
Disk De-Fragmentation
Fragmented Files
Disk Partitions
Disk partitioning is the act of dividing a hard disk drive into multiple
logical storage.
Advantages
Disadvantages
User Interfaces
Device Driver
This is type of operating system have only one user but may
allow multiple programs to run at the same time.
EG:-MS-windows,GNU/linux,Mac OS
Multi User OS
Single Tasking OS
Multi Tasking OS
Real-Time OS
Embedded OS
Distributed OS
Multi Threading OS
Garbage Collection
Disk Checking
Demand paging
Space Allocation
2.Linked Allocation
3.Indexed Allocation
Allocating disk space as a collection of a adjacent
/contiguous blocks
This technique needs to keep track of unused disk space.
Characteristics
Simple
Easy access
File size is not need to know at the time of creation.
Extending file size is difficult.
External fragmentation ( free unusable space between
allocation ).
24 | P a g e
Contiguous Allocation
25 | P a g e
Linked Allocation
Characteristics
No external Fragmentation
Files can grow easily
Mainly seeking techniques are required to access file
data
26 | P a g e
Indexed Allocation
Characteristics
Scheduling Policies