Operating System
Operating System
• You will have a better understanding of the role of the operating system.
• You will have some familiarity with two of the most popular operating
systems – Windows and Unix.
What is the Operating System
– Operating system
– Application programs – define the ways in which the system resources are
used to solve the computing problems of the users
– Users
• Process Management
• Memory Management
• Storage Management
• I/O Subsystem
• Resource Allocation
• Accounting
Examples of Operating Systems
• MS-DOS
• Windows XP
• Unix
• Mac OS X
MS-DOS
– Systems programs
– The kernel
• A process includes:
– program counter
– stack
– data section
Process Control Block (PCB)
• Process state
• Program counter
• CPU registers
• Memory-management information
• Accounting information
• When CPU switches to another process, the system must save the state
of the old process and load the saved state for the new process
• Selects from among the processes in memory that are ready to execute,
and allocates the CPU to one of them according to the following
scheduling criteria:
• Main memory – only large storage media that the CPU can access
directly.
– Speed
– Cost
– Volatility
Storage-Device Hierarchy
Memory Management
– Keeping track of which parts of memory are currently being used and
by whom
– Deciding which processes (or parts thereof) and data to move into
and out of memory
• File-System management
– OS activities include
– by whom
RWX
• 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.
• Entire speed of computer operation hinges on disk subsystem and its algorithms
• OS activities
– Free-space management
– Storage allocation
– Disk scheduling
• Earlier versions of Windows (95 and 98) were built on top of MS-DOS.
DOS commands are still available to the user.
• The command window can be accessed by typing `cmd` in the Run bar.
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_CURRENT_USER
HKEY_CURRENT_CONFIG
HKEY_CLASSES_ROOT
Editing the Windows Registry