100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Class notes 21cs208 $7.99   Add to cart

Class notes

Class notes 21cs208

 4 views  0 purchase
  • Course
  • Institution

completly covered all in overview of os

Preview 3 out of 19  pages

  • July 10, 2024
  • 19
  • 2023/2024
  • Class notes
  • Kiran kumar
  • All classes
avatar-seller
21CS208 – Operating Systems Unit-II

21CS208 – OPERATING SYSTEMS

UNIT II - OVERVIEW OF OPERATING SYSTEMS

Introduction: Computer System Organization, Computer System Architecture, Operating System
Operations. Operating System Structure: OS Services, System calls, Types of System Calls,
Operating – System Structure, OS Generation and System Boot.

----------------------------------------------************-----------------------------------------------------

Text Book: Abraham Silberschatz, Peter Baer Galvin and Greg Gagne, “Operating System
Concepts”, 9thEdition,John Wiley and Sons Inc., 2018.



Operating System:
➢ An operating system is a program that manages the computer hardware. It also provides a
basis for application programs and acts as an intermediary between a user of a computer
and the computer hardware.
The purpose of an operating system is to provide an environment in which a user can execute
programs.
• Exploits the hardware resources of one or more processors (cores)
• Provides a set of services (system calls) to system users
• Manages main/secondary memory and I/O devices
Goals of an Operating System:
➢ The primary goal of an operating system is thus to make the computer system convenient
to use.
➢ The secondary goal is to use the computer hardware in an efficient manner.
Components of a Computer System:
A computer system can be divided roughly into four components.
i. Hardware
ii. Operating system
iii. The application programs
iv. Users




2.1 Computer System Organisation:
 Computer-system operation


1

,21CS208 – Operating Systems Unit-II

 One or more CPUs, device controllers connect through common bus providing
access to shared memory
 Concurrent execution of CPUs and devices competing for memory cycles




Computer-System Operation
 I/O devices and the CPU can execute concurrently
 Each device controller is in charge of a particular device type
 Each device controller has a local buffer
 CPU moves data from/to main memory to/from local buffers
 I/O is from the device to local buffer of controller
 Device controller informs CPU that it has finished its operation by causing an interrupt
Common Functions of Interrupts
 Interrupt transfers control to the interrupt service routine generally, through the interrupt
vector, which contains the addresses of all the service routines
 Interrupt architecture must save the address of the interrupted instruction
 A trap or exception is a software-generated interrupt caused either by an error or a user
request
 An operating system is interrupt driven
Interrupt Handling
 The operating system preserves the state of the CPU by storing registers and the program
counter
 Determines which type of interrupt has occurred:
 polling
 vectored interrupt system
2

, 21CS208 – Operating Systems Unit-II

➢ Separate segments of code determine what action should be taken for each type of
interrupt
Interrupt Timeline




I/O Structure
 After I/O starts, control returns to user program only upon I/O completion
✓ Wait instruction idles the CPU until the next interrupt
✓ Wait loop (contention for memory access)
✓ At most one I/O request is outstanding at a time, no simultaneous I/O processing
 After I/O starts, control returns to user program without waiting for I/O completion
✓ System call – request to the OS to allow user to wait for I/O completion
✓ Device-status table contains entry for each I/O device indicating its type,
address, and state
✓ OS indexes into I/O device table to determine device status and to modify table
entry to include interrupt
Storage Structure
➢ Main memory – only large storage media that the CPU can access directly
✓ Random access
✓ Typically volatile
➢ Secondary storage – extension of main memory that provides large nonvolatile storage
capacity
➢ Hard disks – rigid metal or glass platters covered with magnetic recording material
• Disk surface is logically divided into tracks, which are subdivided into
sectors
3

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 praveenkumar.m1. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75759 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
$7.99
  • (0)
  Add to cart