All Document Reader 1722601689870
All Document Reader 1722601689870
All Document Reader 1722601689870
Services and
Components of
Operating-System
Structures
(10 marks)
Operating System Services
1. One set of operating-system services provides functions that are helpful to
the user:
a. User interface - Almost all operating systems have a user interface
(UI)
● Varies between Command-Line (CLI), Graphics User Interface
(GUI), Batch
a. Program execution - The system must be able to load a program into
memory and to run that program, end execution, either normally or
abnormally (indicating error)
b. I/O operations - A running program may require I/O, which may
involve a file or an I/O device.
c. File-system manipulation - The file system is of particular interest.
Obviously, programs need to read and write files and directories, create
and delete them, search them, list file Information, permission
management.
d. Communications – Processes may exchange information, on the same
computer or between computers over a network
4 Communications may be via shared memory or through message
passing (packets moved by the OS)
Operating System 2.2 Silberschatz, Galvin and Gagne
(Cont.)
● Error detection – OS needs to be constantly aware of possible errors
○ May occur in the CPU and memory hardware, in I/O devices, in user
program
○ For each type of error, OS should take the appropriate action to ensure
correct and consistent computing
○ Debugging facilities can greatly enhance the user’s and programmer’s
abilities to efficiently use the system
● Another set of OS functions exists for ensuring the efficient operation of
the system itself via resource sharing
○ Resource allocation - When multiple users or multiple jobs running
concurrently, resources must be allocated to each of them
■ Many types of resources - Some (such as CPU
cycles,mainmemory, and file storage) may have special allocation
code, others (such as I/O devices) may have general request and
release code.
○ Accounting - To keep track of which users use how much and what
kinds of computer resources
● Process management
● Main memory management
● Files management
● I/O device management
● Secondary storage management
● Security management
● Network management
● Command Interpreter
● 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.
● Proper management is of central importance
● Entire speed of computer operation hinges on disk subsystem and
its algorithms
● OS activities
● Free-space management
● Storage allocation
● Disk scheduling
● Some storage need not be fast
● Tertiary storage includes optical storage, magnetic tape
● Still must be managed
● Varies between WORM (write-once, read-many-times) and
RW (read-write)
● User Management
● Security Policy
● Device management
● Performance Monitor
● Task scheduler
1. User Accounts
● User Types:
○ Administrator/Superuser: Has full control over the system, including
installing software, managing user accounts, and configuring system
settings.
○ Standard User: Has limited access, typically restricted to using
applications and accessing personal files.
○ Guest User: Has minimal privileges, often used for temporary access
without the ability to modify system settings or install software.