Professional Documents
Culture Documents
Chapter - 01 - Overview of Operating System
Chapter - 01 - Overview of Operating System
The kernel
Type of Operating System
Batch processing system
Multiprogramming processing system
Time sharing system (multitasking processing)
Parallel system
Distributed system
Real-time processing system
Embedded System
Batch processing system
Batch operating systems execute tasks in turn
according to predetermined instructions.
Permanent supervisor
CPU and I/O operations
Multiprogramming processing system
time
Parallel system (multi-processing)
There are multiple processors that share the data transmission line: the
clock, the memory and the peripherals.
Optimized than systems with multiple machines with a single processor:
sharing peripheral devices, storage systems, sources ...
reliability
Symmetric multiprocessor: each processor runs with one copy of the
operating system
Asymmetric multiprocessing: each processor is assigned a separate job.
One main processor controls the entire system, and the other processors
follow the instructions of the main processor.
Distributed system
Processors do not share memory and clocks
Distributed processors often differ in size and
functionality
Share resources
Speed up calculation
Safe
Communication with each other
Real-time processing system
Used when there are time constraints on processor or
data flow operations.
Fast processing time.
Accurate results in the fastest time squeezing time.
Hard real-time system:
work is completed in time.
The data is usually stored in short term memory.
Soft real-time system:
Each task has its own priority and will be executed
according to that priority.
Embedded System
Embedded in home appliances, game machines, ...
The architecture is simple, compact, with specific
characteristics for each device.
Applications: PDA, Mobil phones, ...
Operating System Services
Process management
Main memory management
Manage extra memory
Manage Input/Output systems
File system management
Security system
Command line mechanism system
Process management
A process is a program in progress
The role of an operating system in process
management:
Create and destroy user and system processes.
Stop and redo a process.
Provides process synchronization mechanism.
Provides a way to communicate between processes.
Deadlock control mechanism is provided
Main memory management
Keeps information about where in memory is used
and who is using it.
Decide which processes are loaded into the main
memory, when the memory is available.
Allocate and recall memory as needed.
Manage extra memory
Manage free space of disk.
Location of storage.
Schedule a disc.
Manage Input/Output systems
Buffer caching system.
General device drivers communication.
Controller for hardware devices
File system management
Create and delete a file.
Create and delete a directory.
Supports file and folder operations.
Mapping files on the secondary storage system.
Backup files on storage devices.
Security system
A mechanism that controls the access of a program,
process, or user to system resources.
Command line system
Command controller
Command interpreter
Other services
Execute the program
Input and output operations
Manipulation on the file system
Network management
Information
Error detection
System call
Provides a communication between the process and
the operating system
Method of passing parameters to the operating system:
pass the parameter to the register.
stored in blocks or tables in memory.
stack mechanism.
System calls can be divided into categories: process
control, file manipulation, device manipulation,
information.
System call
The simple OS structure
Cấu trúc của hệ điều hành MS-DOS (cấu trúc đơn giản)
The structure of the first ver. UNIX OS
The structure of a layered operating system