Module 2: Personal Computing: Basics of Computers and Computing
Module 2: Personal Computing: Basics of Computers and Computing
•This type manages the computer so that one user can effectively
do one thing at a time.
Types of Operating Systems
• 2. Multi-user, multi-task
• Allows two or more users to run programs at the same time.
• Some operating systems permit hundreds or even thousands of concurrent
users.
Types of Operating Systems
4. Single-user, Multi-tasking
• This is the type of operating system most desktops and laptops
use today.
• Microsoft’s Windows and Apple’s MacOS are both examples of
operating systems that will let a single user have several programs
in operation at the same time.
The Structure of Computer Systems
Operating
User Applications
System Hardware
The Structure of Computer Systems
• Accessing computer resources is divided into layers.
• Each layer is isolated and only interacts directly with the layer
below or above it.
• If we install a new hardware device
• No need to change anything about the user/applications.
• However, you do need to make changes to the operating system.
• You need to install the device drivers that the operating system will
use to control the new device.
The Structure of Computer Systems
• If we install a new software application
• No need to make any changes to your hardware.
• But we need to make sure the application is supported by the
operating system
• User will need to learn how to use the new application.
• If we change the operating system
• Need to make sure that both applications and hardware will
compatible with the new operating system.
History of Operating System
The First Generation The Second Generation The Third Generation The Fourth Generation
(1940's to early 1950's) (1955-1965) (1965-1980) (1980-Present Day)
shell
The OS Kernel
• The internal part of the OS is often called the Kernel
• Kernel Components
• File Manager
• Device Drivers
• Memory Manager
• Scheduler
• Dispatcher
OS File Manager
• Maintains information about the files that are available on the system
• Where files are located in mass storage, their size and type and their
protections, what part of mass storage is available
• Files usually allowed to be grouped in directories or folders. Allows
hierarchical organization.
OS Device Drivers
• Software to communicate with peripheral devices or controllers
• Each driver is unique
• Translates general requests into specific steps for that device
OS Memory Manager
• This unit is responsible for coordinating the use of the machine’s main
memory.
• It decides what area of memory is to be allocated for a program and
it’s data
• It allocates and deallocates memory for different programs and
always knows what areas are free.
OS Scheduler
• Maintains a record of processes that are present, adds new
processes, removes completed processes
• memory area(s) assigned
• priority
• state of readiness to execute (ready/wait)
OS Dispatcher
• Ensures that processes that are ready to run are actually executed
• Time is divided into small (50 ms) segments called a time slice.
• When the time slice is over, the dispatcher allows scheduler to update
process state for each process, then selects the next process to run