0% found this document useful (0 votes)
69 views

Perating Ystems: CS C372 & IS C362

Memory protection is provided through base and limit registers that define the valid memory address range for a process. The base register stores the lowest valid address while the limit register stores the size of the valid range. A timer also protects the CPU by generating interrupts to ensure the operating system maintains control through time sharing, and keeps track of time. The timer is decremented each clock tick until it reaches zero and interrupts, and load-timer is a privileged instruction only the operating system can execute.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views

Perating Ystems: CS C372 & IS C362

Memory protection is provided through base and limit registers that define the valid memory address range for a process. The base register stores the lowest valid address while the limit register stores the size of the valid range. A timer also protects the CPU by generating interrupts to ensure the operating system maintains control through time sharing, and keeps track of time. The timer is decremented each clock tick until it reaches zero and interrupts, and load-timer is a privileged instruction only the operating system can execute.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

OPERATING SYSTEMS (CS C372 & IS C362)

LECTURE 5:OPERATING SYSTEM PROTECTION

Memory Protection

Must provide memory protection at least for the interrupt vector and the interrupt service routines In order to have memory protection, add two registers that determine the range of legal addresses a program may access:

base register holds the smallest legal physical memory address Limit register contains the size of the range

Memory outside the defined range is protected

13 August 2012

Biju K Raveendran@BITS Pilani.

A Base And A limit Register Define A Logical Address Space

13 August 2012

Biju K Raveendran@BITS Pilani.

CPU Protection

Timer interrupts computer after specified period to ensure operating system maintains control

Timer is decremented every clock tick When timer reaches the value 0, an interrupt occurs

Timer commonly used to implement time sharing Timer is also used to compute the current time Load-timer is a privileged instruction

13 August 2012

Biju K Raveendran@BITS Pilani.

You might also like