• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 64 pages
Class notes

Operating Systems : Chapter 1 to Chapter 5

Document preview thumbnail
Preview 4 out of 64 pages

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 Exclusion and Synchronisation

Content preview

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)

Connected book
 image
William Stallings Operating Systems
Publisher: 2009 ISBN: 9780136006329 Edition: Unknown

Document information

Uploaded on
November 8, 2021
Number of pages
64
Written in
2021/2022
Type
Class notes
Professor(s)
Dr. s gruner
Contains
Lecture 1 to lecture 14
$6.21

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
32
Followers
25
Items
23
Last sold
2 year ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions