Unit 1 OS Basic Concepts Structure and Services
Unit 1 OS Basic Concepts Structure and Services
prevent errors and improper use of the Cooperative – each program can control the CPU for as long as it needs it.
(Old versions of Windows, MultiFinder - Mac Computers)
computer
Single Tasking – only one program can run at a time. (DOS, Palm OS)
NOTE: OS has 2 main parts, the main OS and the Kernel (Heart of the
program)
2/11/2024
Multi-Tasking OS Single-Tasking OS
Typical approaches to structuring the Operating systems such as MS-DOS and the
operating system. original UNIX did not have well-defined structures.
Simple Structure There was no CPU Execution Mode (user and
MonolithicSystems kernel), and so errors in applications could cause
Layered Systems the whole system to crash.
Microkernel Systems
2/11/2024
Functionality of the OS is invoked with simple function calls This allows implementers to change the inner workings, and
within the kernel, which is one large program. increases modularity.
Device drivers are loaded into the running kernel and As long as the external interface of the routines don’t change,
developers have more freedom to change the inner workings of the
become part of the kernel.
routines.
With the layered approach, the bottom layer is the hardware, while
the highest layer is the user interface.
This structures the operating system by removing all One set of operating-system services provides functions
nonessential portions of the kernel and implementing them as that are helpful to the user:
system and user level programs.
User interface - Almost all operating systems have a user
Generally they provide minimal process and memory management,
and a communications facility. interface (UI)
Communication between components of the OS is provided by Varies between Command-Line (CLI), Graphics User
message passing. Interface (GUI)
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)
I/O operations - A running program may require I/O, which may
involve a file or an I/O device.
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.
2/11/2024
Another set of OS functions exists for ensuring the CLI allows direct command entry
efficient operation of the system itself via resource Sometimes implemented in
sharing kernel, sometimes by
Crash Protection – The ability to isolate systems program
application errors from affecting other applications Sometimes multiple flavors
or the OS itself. implemented – shells
Primarilyfetches a
Extensible – The ability to easily expand the
command from user and
capabilities of the OS as updates becomes
executes it
available.
– Sometimes commands
Utilities – a set of common utilities for built-in, sometimes just
maintaining the health of our disks (scandisk and names of programs
defrag) and performing backups.
2/11/2024