Operating System Structures: Instructor
Operating System Structures: Instructor
Operating System Structures: Instructor
Operating System
Structures
2
System Components
• Process Management
• Main Memory Management
• File Management
• I/O System Management
• Secondary Management
• Protection System
• Command-Interpreter System
3
Process Management
• A process is a program in execution. A process needs certain
resources, including CPU time, memory, files, and I/O
devices, to accomplish its task.
5
Main Memory Management (Cont.)
6
File Management
• A file is a collection of related information defined by its
creator. Commonly, files represent programs (both source
and object forms) and data.
• Magnetic tape, magnetic disk, and optical disk are the most
common media.
8
I/O System Management
9
Secondary-Storage Management
11
Command-Interpreter System
12
Command-Interpreter System (Cont.)
– command-line interpreter
– shell (in UNIX)
13
Operating System Services
• Program execution
– System capability to load a program into memory and to run it.
– Program must be able to end its execution, either normally or
abnormally (indicating error).
• I/O operations
– Since user programs cannot execute I/O operations directly, the
operating system must provide some means to perform I/O.
14
Operating System Services (Cont.)
• File-system manipulation
– Program capability to read, write, create, and delete files.
• Communications
– Exchange of information between processes executing either on the
same computer or on different systems tied together by a network.
Implemented via shared memory or message passing.
• Error detection
– Ensure correct computing by detecting errors in the CPU and
memory hardware, in I/O devices, or in user programs.
15
Additional Operating System Functions
• Additional functions exist not for helping the user, but rather
for ensuring efficient system operations.
• Resource allocation
– Allocating resources to multiple users or multiple jobs running at the
same time.
• Accounting
– Keep track of and record which users use how much and what kinds
of computer resources for account billing or for accumulating usage
statistics.
• Protection
– Ensuring that all access to system resources is controlled.
– Security of the system from outsiders is also important.
16
System Calls
• System calls provide the interface between a running
program and the operating system.
18
Types of System Calls
19
Process and job control
MS-DOS Execution
21
Process and job control
Communication Models
• Communication may take place using either message passing or
shared memory.
23
System Programs (Contd.)
• File manipulation
– These programs creates, delete copy, rename, print, dump, list and
manipulate files and directories.
• Status information
– Programs simply ask the system for the date, time, amount of
memory or disk space, number of users or similar status
information.
– The information is printed on terminal or other output device.
• File modification
– Several text editors are available to create and modify the contents of
files and save it on disk or tape.
24
System Programs (Contd.)
• Communications
– Provide the mechanism for creating virtual connections among
processes, users and different computer systems.
25