Operating Systems Flashcards
What is an Operating System?
A software that acts as an intermaiedary between users and hardware
Functions of operating systems
-Oversee operation of computer
-Store and retrieve files
-Schedule programs for execution
-Coordinate the execution of programs
OS as …..
OS as …..
OS as extended machine (resource allocator)
OS as a resource manager (control program)
Components of Computer System
Computer Hardware>Operating Systems>Sytem and Application Programs>Users
Evolution of shared computing
Batch processing : Add to queue and wait
Interactive processing : Requires real-time processing
Time-sharing/Multitasking : Implemented by multiprogramming
Multiprocessor machines :
Types of Software
Application Software : Specific tasks for users
System Software : Provides infrastructure for application software and consists of “operating system and utility software”
Software Classification
Software - Application
\
System - Utility
\
Operating System - User interface
\
Kernel
Operation System Components
User interface : Communicates with users
+Text based (Shell)
+Graphical user interface (GUI)
Kernel : Performs basic required functions
+File manager
+Device drivers
+Memory manager
+Schedular and dispatcher
File Manager
Directory (or Folder) : A user-created bundle of files and other directories (subdirectories)
Directory path : A sequence of directories within directories
Memory Manager
+Allocates space in main memory
+Virtual memory by playing a “shell game” in which blocks of data (pages) are shifted back and forh between main memory and mass storage
Getting it started
=Bootstrapping
Boot loader : Program in ROM (example of firmware)
-Run by the CPU when power is turned on
-Transfers operating system from mass storage to main memory
-Executes jump to operating system
Processes
Process : The activity of executing a program
Process state : Current status of the activity
-Program counter
-General purpose registers
-Related portion of main memory
Process administration
Schedular : Adds new processes to the process table and removes completed ones
Dispatcher : Controls the allocaation of time slices to the processes in the process table *the end of a time slice is signaled by an interrupt
Handling Competition for Resources
Semaphore : A “control flag”
Critical Region : A group of instructions that should be executed by only one process at a time
Mutual exclusion : Requirement for proper implementation (yürütme) of a critical region
Deadlock
Processes block each other from continuing
Conditions required for deadlock
1-Competition for non-sharable resources
2-Resources requested on a partial basis
3-An allocated resource cannot be forcibly retieved