Sistemet Operative Funksionet e Sistemit Operativ: Lënda
Sistemet Operative Funksionet e Sistemit Operativ: Lënda
Prishtinë, 2023
1
Dual-mode and Multi-mode Operation
▪ User Mode
The system is in user mode when the OS is running a user application such
2
Dual-mode and Multi-mode Operation (cont.)
▪ Multi-mode
The system which supports virtualization.
3
Funksionet kryesore të Sistemit Operativ
4
Process Management
Initialization data
5
Process Management Activities
6
Memory Management
7
File-system Management
▪ File-System management
Files usually organized into directories.
what.
▪ File-System management activities
Creating and deleting files and directories
Primitives to manipulate files and directories
Mapping files onto secondary storage
Backup files onto stable (non-volatile) storage media
8
Device/Mass-Storage Management
▪ Usually, disks used to store data that does not fit in main memory or data
that must be kept for a “long” period of time.
Free-space management
Storage allocation
Disk scheduling
Partitioning
Protection
9
Cache Management
10
I/O System Management
11
Protection and Security
▪ Emulation
Which involves simulating computer hardware in software, is
typically used when the source CPU type is different from the target
CPU type.
Generally slowest method.
13
Virtualizimi (vazhd.)
14
Distributed Systems
15
Kernel data structures
accessed directly.
→ For example, main memory (RAM) is constructed as an array.
Linked list
A list represents a collection of data values as a sequence.
To linked list, the items are linked to one another.
16
Kernel data structures (cont.)
Doubly linked list, a given item can refer either to its predecessor or to its
successor.
Circularly linked list, the last element in the list refers to the first element,
rather than to null.
17
Kernel data structures (cont.)
Stack
A stack is a sequentially ordered data structure that uses the Last-In-First-
Out (LIFO) principle for adding and removing items, meaning that the last
item placed onto a stack is the first item removed.
The operations for inserting and removing items from a stack are known as
push and pop, respectively.
Queue
A queue, in contrast, is a sequentially ordered data structure that uses the
18
Kernel data structures (cont.)
Trees
A tree is a data structure that can be used to represent data hierarchically.
19
Kernel data structures (cont.)
20
Kernel data structures (cont.)
Bitmaps
A bitmap is a string of n binary digits that can be used to represent the
status of n items.
For example, suppose we have several resources, and the availability of
each resource is indicated by the value of a binary digit: 0 means that the
resource is available, while 1 indicates that it is unavailable (or vice versa).
The power of bitmaps becomes apparent when we consider their space
efficiency.
→ Disk drives provide a nice illustration.
21
Computing Environments
Traditional
▪ Stand-alone general-purpose machines.
▪ Portals provide web access to internal servers.
▪ Network computers (thin clients) are like Web terminals.
▪ Mobile computers interconnect via wireless networks.
Mobile
▪ Handheld smartphones, tablets, etc.
▪ Extra feature – more OS features (GPS).
▪ Use IEEE 802.11 wireless, or cellular data networks for connectivity.
▪ Leaders are Apple iOS and Google Android.
22
Computing Environments -> Client-Server
▪ Client-Server systems:
Many systems now servers, responding to requests generated by
clients:
▪ Compute-server system provides an interface to client to
request services (i.e., database).
▪ File-server system provides interface for clients to store and
retrieve files.
23
Computing Environments -> Peer-to-Peer
24
Computing Environments -> Cloud Computing
25
Computing Environments -> Cloud Computing (cont.)
▪ Embedded Systems:
These devices are found everywhere,
27
Free and Open-Source operating systems
▪ GNU/Linux is the most famous open-source OS, with some distributions free
and others open-source only.
▪ Microsoft Windows is a well-known example of the opposite closed-source
approach.
▪ Apple’s macOS OS comprises a hybrid approach. It contains an open-source
kernel named Darwin but includes proprietary, closed-source components as
well. 28
Pyetje dhe Diskutime ?
29
The slides are adapted from: Abraham Silberschatz, Peter Baer
Galvin, and Greg Gagne, “Operating System Concepts”, Tenth
Edition
30