100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Operating Systems : Chapter 1 to Chapter 5 $5.67   Add to cart

Class notes

Operating Systems : Chapter 1 to Chapter 5

 127 views  3 purchases
  • Course
  • Institution
  • Book

This document covers Chapter 1 to Chapter 5 of William Stallings, Operating Systems: Internals and Design Principles. Chapter 1 - Computer System Overview Chapter 2 - Operating System Overview Chapter 3 - Process Description and Control Chapter 4 - Threads Chapter 5 - Concurrency: Mutual Exclu...

[Show more]

Preview 4 out of 64  pages

  • November 8, 2021
  • 64
  • 2021/2022
  • Class notes
  • Dr. s gruner
  • Lecture 1 to lecture 14
avatar-seller
Chapter 1: Part 1
Operating systems
o Manage hardware components
o Processor
o Main memory
o System Bus
o I/O Modules

Processor
• Central Processing Unit (CPU) – if there is only 1 processor
• Controls operation of computer
• Loads and executes instructions
o Arithmetic or logical ops on data

Main memory [aka real memory primary memory]
• Stores data and apps
• Apps/programs = sequence of instructions
• Volatile (unlike disk memory)
o Memory lost when computer shuts down

I/O Modules [input and output modules]
• Moves data btwn computer and exit enviro
o Secondary memory devices (hard disk)
o Comms (keyboard, printer)
o terminals

System bus
• Communications line among processor, main memory and I/O modules

,Instruction Execution
• A program the consist of a set of instructions
• 2 step execution (with help from system bus)
1. Processor reads (fetches) instructions from memory
2. Processor executes each instruction
• Instruction cycle = process of processing 1 instruction




Instruction Fetch
• Program register example 0100
• Processor fetches instruction from the memory address and adds to instruction
register (IR)
• Program counter (PC) holds address of next instruction to be fetch
o PC increments after each fetch

,Instruction Register
• Processor interprets instruction and performs required action
• 4 categories
o Processor-memory transfer
o Processor-I/O transfer
o Operation data
o Control




Interrupts
• Mechanism by which modules (I/O) can interrupt the normal program execution of
the processor
• Improves utilization of processor
o I/O devices are slower than processor
o With interrupts processor can execute other instructions while a device
performs I/O commands
o I/O modules will send an interrupt when the command is finished and the
processor is needed by the module (short interruption)
• Classes of interrupts
o I/O
▪ Generated by I/O module, to signal that it needs the processor

, o Program
▪ Exceptions for arithmetic overflow (division by zero, etc.)
o Timer
▪ Generated by a timer
▪ Allows the OS to perform certain function on a regular basis
(automatic backups)
o Hardware
▪ Generated by a failure (i.e. power failure)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller mpumi__tshabalala. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $5.67. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67096 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$5.67  3x  sold
  • (0)
  Add to cart