Basics of OS (Computer System Operation)

Neso Academy
4 Aug 201718:09

Summary

TLDRThis lecture delves into the foundational concepts of computer systems, essential for understanding operating systems. It explains the structure of modern computers, highlighting the role of CPUs, device controllers, and shared memory, all interconnected through a common bus. The Bootstrap Program initiates system startup by loading the OS from ROM, while interrupts and system calls allow for task prioritization and execution. The lecture also touches on the CPU's response to interrupts, emphasizing the seamless multitasking capabilities of computer systems.

Takeaways

  • 📚 The lecture introduces the basic concepts of computer system operations as a foundation for understanding operating systems.
  • 🧠 The CPU, considered the brain of the computer, is responsible for all computations, processing, and calculations.
  • 🖥️ A computer system may consist of one or more CPUs, device controllers, and is connected through a common bus to shared memory.
  • 🔌 Device controllers manage the operation of specific hardware devices like disks, keyboards, and printers, all connected via a common bus.
  • 💾 The Bootstrap Program is the initial program executed when a computer is powered up or rebooted, stored in ROM and responsible for loading the OS.
  • 📍 The Bootstrap Program must know the location of the operating system in secondary memory and load the OS kernel into main memory.
  • 🚨 An Interrupt is a signal from hardware or software that interrupts the CPU's current task, requiring it to execute a higher priority task.
  • 🔄 When an interrupt occurs, the CPU stops its current work and transfers execution to a fixed location, known as the Interrupt Service Routine (ISR).
  • 🛠️ The Interrupt Service Routine is a predefined set of instructions that the CPU executes in response to an interrupt before resuming its original task.
  • 🔗 A System Call, also known as a Monitor Call, is a software-triggered interrupt used to request a service from the operating system.
  • 🔍 The lecture emphasizes the importance of understanding computer system structure and operations as a prerequisite for delving into operating system details.

Q & A

  • What is the purpose of studying the computer system operations before diving into the details of the operating system?

    -Studying the computer system operations provides a foundational understanding of the structure of a computer system, which is essential for grasping how the operating system works effectively.

  • What does the term 'CPU' stand for and why is it considered the brain of the computer system?

    -CPU stands for Central Processing Unit. It is considered the brain of the computer system because it is the main processing unit where all computations, processing, and calculations take place.

  • Can you explain the role of a device controller in a computer system?

    -A device controller is responsible for managing the operation of a specific type of device, such as a disk controller for a hard disk or a USB controller for USB devices. It ensures that the devices work correctly and communicate effectively with the CPU and memory.

  • What is the significance of a common bus in connecting various components of a computer system?

    -The common bus is significant as it provides a pathway for all components, including the CPU and device controllers, to access the shared memory. It facilitates communication and data transfer among the system's components.

  • How does the Bootstrap Program function when a computer is powered up or rebooted?

    -The Bootstrap Program is the initial program that runs when a computer is powered up or rebooted. It is stored in ROM and is responsible for loading the operating system into the main memory, specifically the OS kernel, to start executing the system.

  • What is the role of the memory controller in a computer system?

    -The memory controller ensures orderly access to the shared memory by synchronizing the access of various devices and the CPU. It manages the allocation of memory resources to prevent conflicts and ensure smooth operation.

  • What is an Interrupt in the context of computer systems?

    -An Interrupt is a signal sent by hardware or software to the CPU, indicating that it needs to pause its current task and execute a different task that has been signaled as more important or urgent.

  • How does a System Call differ from a hardware-triggered interrupt?

    -A System Call, also known as a Monitor Call, is a software-triggered interrupt. It is a special operation executed by software to request a service from the operating system, whereas a hardware-triggered interrupt is initiated by hardware components.

  • What happens when the CPU receives an interrupt?

    -When the CPU receives an interrupt, it stops its current work and immediately transfers execution to a fixed location, which is the starting address of the Interrupt Service Routine (ISR). After the ISR executes, the CPU resumes the interrupted computation.

  • What is the purpose of an Interrupt Service Routine (ISR)?

    -The purpose of an ISR is to define the actions that need to be taken in response to an interrupt. It contains the code that the CPU should execute when an interrupt occurs, ensuring that the interrupt is handled appropriately.

  • Why is it important to understand the basic structure and operations of a computer system before studying the operating system?

    -Understanding the basic structure and operations of a computer system is important because it provides the necessary context and foundational knowledge to comprehend the more complex functions and mechanisms of an operating system.

Outlines

00:00

📚 Introduction to Computer System Structure

This paragraph introduces the foundation of computer system operations as a prerequisite for understanding operating systems. It emphasizes the importance of knowing the computer system's structure to grasp how the operating system functions. The lecturer explains the components of a modern general-purpose computer system, including CPUs, device controllers, and the shared memory accessed through a common bus. A CPU is described as the brain of the computer, responsible for all computations, while device controllers manage the operation of peripheral devices. The paragraph also provides a basic overview of computer organization and architecture, setting the stage for a deeper dive into operating systems.

05:03

🔌 The Role of Device Controllers and Memory Management

This section delves into the specifics of how device controllers manage different hardware components in a computer system and how they compete for memory cycles. It explains the concept of concurrent execution, where multiple devices can operate at the same time without causing lag, highlighting the system's power and efficiency. The paragraph introduces the memory controller's role in synchronizing access to the main memory, ensuring that all devices and the CPU get the necessary memory allocation for smooth operation. Additionally, it introduces the Bootstrap Program, the first program executed when a computer starts up, stored in ROM, and responsible for loading the operating system.

10:05

🛠️ Understanding Bootstrap Programs and Interrupts

The paragraph discusses the features and functions of the Bootstrap program, which is stored in ROM and is crucial for loading the operating system into the main memory when the computer is powered on. It then transitions to the concept of interrupts, which are signals from hardware or software that cause the CPU to pause its current task and execute a higher-priority task. The paragraph explains how hardware can send interrupt signals to the CPU via the system bus and how software can trigger interrupts through system calls or monitor calls. The CPU's response to interrupts is also outlined, detailing the immediate transfer of execution to a fixed location when an interrupt occurs.

15:10

🚀 CPU's Response to Interrupts and Service Routines

This final paragraph focuses on the CPU's response to interrupts and the execution of service routines. When an interrupt occurs, the CPU halts its current operations and transfers execution to a fixed location, which is the starting address of the Interrupt Service Routine (ISR). The ISR is where the actions required by the interrupt are defined and executed. Once the ISR completes its task, the CPU resumes its previous computation, effectively handling the interrupt. This paragraph wraps up the basic introduction to computer system operations, setting the stage for further exploration of storage structures and memory in upcoming lectures.

Mindmap

Keywords

💡Operating System

An operating system (OS) is a critical software that manages computer hardware and software resources and provides common services for computer programs. It acts as an interface between the user and the hardware. In the script, the OS is mentioned as a system software that the Bootstrap program loads into the main memory, which is essential for the functioning of the computer system.

💡CPU (Central Processing Unit)

The CPU is often referred to as the 'brain' of the computer system. It is responsible for executing instructions and processing data. The script explains that a modern computer system may have one or more CPUs, which are the central processing units where all computations and calculations take place.

💡Device Controllers

Device controllers are hardware components that manage the communication between the CPU and peripheral devices such as a mouse, keyboard, or printer. The script describes how these controllers are connected through a common bus and are responsible for the operation of their respective devices, ensuring they work seamlessly with the CPU.

💡Common Bus

A common bus in the context of computer systems refers to a shared communication pathway that allows data to be transmitted between various components, such as the CPU, device controllers, and memory. The script illustrates that all components are connected to this bus, which facilitates their interaction and data sharing.

💡Shared Memory

Shared memory is a region of memory that can be accessed by multiple processes or devices within a computer system. The script mentions that the CPU and various device controllers are connected to a shared memory through a common bus, which is managed by a memory controller to ensure orderly access.

💡Bootstrap Program

The Bootstrap program is the initial software that runs when a computer is powered up or rebooted. It is stored in ROM and is responsible for loading the operating system into the main memory. The script explains that the Bootstrap program is crucial for starting up the computer system by locating and loading the OS kernel.

💡Interrupt

An interrupt is a signal sent by hardware or software to the CPU, indicating that it needs to pause its current task and attend to a higher-priority task. The script describes how the CPU responds to interrupts by stopping its current work and executing the task associated with the interrupt signal.

💡System Call

A system call is a request made by a program to an operating system's services. It is a software-generated interrupt that allows the program to request some service from the OS. The script differentiates system calls from hardware interrupts, explaining that while both are types of interrupts, system calls are specifically triggered by software.

💡Service Routine

A service routine, also known as an Interrupt Service Routine (ISR), is a piece of code that is executed when an interrupt occurs. The script explains that when the CPU receives an interrupt, it transfers execution to the service routine, where the task associated with the interrupt is handled.

💡Memory Controller

A memory controller is a component that manages the flow of data between the CPU and memory. It ensures that the CPU and other device controllers have proper access to the shared memory without conflict. The script describes the memory controller's role in synchronizing access to memory, which is vital for the smooth operation of the computer system.

Highlights

Introduction to the operating system and its functions.

Explanation of basic concepts before delving into the operating system.

Overview of computer system operations and structure.

Importance of understanding computer system structure for grasping OS concepts.

Modern general-purpose computer systems consist of one or more CPUs.

Definition and role of the CPU as the brain of the computer system.

Explanation of device controllers and their connection through a common bus.

Discussion on how device controllers manage specific hardware like disks, USB devices, and monitors.

Introduction to the concept of concurrent execution by CPUs and device controllers.

Role of the memory controller in synchronizing access to shared memory.

Explanation of the Bootstrap program and its function during system startup.

Introduction to interrupts and how hardware and software trigger them.

Difference between hardware interrupts and software interrupts (system calls).

Process of how the CPU responds to interrupts and executes interrupt service routines.

Preview of the next lecture on storage structure and memory.

Transcripts

play00:00

In the last lecture, we have started studying about the operating system.

play00:03

and we also saw the introduction of the operating system.

play00:07

We saw what an operating system really is.

play00:10

What it really does,

play00:11

and we have also seen the functions of the operating system.

play00:14

We have also seen some basic examples of the operating system.

play00:19

Now, In this lecture,

play00:20

we will see some of the basic concepts that you need to know,

play00:25

before we really go into the details of the operating system.

play00:28

So, in this lecture we will mainly study about

play00:31

computer system operations.

play00:33

So, basically it is about the structure of computer system.

play00:36

Now, why I am doing this is because,

play00:39

some basic knowledge of the structure of the computer system

play00:42

is required to understand, how the operating system works.

play00:46

So, by studying about the structure of the computer system,

play00:50

It will provide you a base for an understanding of the operating system.

play00:54

So, instead of directly diving into how the operating system works,

play00:58

we should have a base about this

play01:00

so, it will help us to understand

play01:02

in a clearer way about the operating system.

play01:05

After studying this, you will study every concept of the operating system.

play01:09

You will not feel completely blank

play01:12

and you will have a proper idea of why

play01:14

we are doing this and why certain things are working in that way.

play01:19

Not only that,

play01:20

while having a basic introduction to this structure of computer system,

play01:24

you are getting a basic introduction to

play01:27

computer organization and architecture,

play01:29

which is an important course

play01:31

as far as Computer Science and Electronics is concerned.

play01:34

Alright!

play01:35

So, Now let us see what we can study

play01:38

from this computer system operation in this lecture.

play01:41

So, here it says,

play01:43

a modern general purpose computer system

play01:46

consists of one or more CPUs,

play01:49

and a number of device controllers

play01:51

connected through a common bus, that provides access to the shared memory.

play01:56

So don't worry about this definition,

play01:58

It will become clear as I show you a diagram related to this

play02:02

and we will see what this actually means.

play02:04

So,here I have a diagram, which we can use

play02:07

to explain these sentences written here.

play02:09

So, let us break the sentence into parts to see what each line means.

play02:14

A modern general purpose computer system

play02:17

consists of one or more CPUs.

play02:20

Now, what do we mean by this?

play02:22

A modern general purpose computer,

play02:24

it consists of one or more central processing units.

play02:28

Now, What is a CPU?

play02:29

CPU is the main part,

play02:32

we can call it the brain of the computer system.

play02:35

It is the processing unit.

play02:37

that is where all the computations, processing and calculations

play02:41

take place in a computer.

play02:43

Now, when we mostly talk about CPU what comes to our mind

play02:46

Usually as a novice

play02:48

what comes to our mind is the big box beside your desktop that you have.

play02:52

and that is what we generally think a CPU is.

play02:56

We just look at it and call it as the CPU.

play02:58

But that box is not just a CPU,

play03:01

that box consists of many things like motherboard,

play03:04

CD ROM, USB ports, many things are there.

play03:08

But, CPU is just a small chip that is there,

play03:11

embedded into the Mother Board.

play03:14

and that small chip is responsible for

play03:17

performing all the computation and calculations

play03:20

and that is your actual CPU.

play03:23

So the box, you can just called it a cabinet

play03:25

but the CPU is just a small unit that is present

play03:29

inside that box, which is there in your motherboard.

play03:32

Alright!

play03:33

Then the modern computer system,

play03:34

may have one or more CPUs

play03:37

depending on the processing power of your computer.

play03:40

so, that is the meaning of the first line.

play03:42

A number of device controllers are connected through a common bus

play03:47

that provides access to the shared memory.

play03:50

So, here if you look into this diagram

play03:52

we have some hard wares like

play03:54

Disk, which can be hard-disk or anything like that,

play03:57

and then we have some more hardwares like

play03:59

Mouse, Keyboard, Printer

play04:02

Then you have your monitor over here.

play04:04

It is not limited to this, but this is just an example I am showing you.

play04:07

And then each of these hard wares and devices

play04:10

is connected to a controller.

play04:13

This controller is responsible for

play04:15

the way these devices work.

play04:17

So, here, for example we have the disk

play04:20

which is connected by the disk controller.

play04:23

and then these devices like Mouse, Keyboard, Printer,

play04:26

assuming that they are all USB devices

play04:29

are connected to the USB controller.

play04:32

Because these are connected to the USB ports

play04:34

and USB Controller would take care of how these devices perform.

play04:38

And then you have your monitor,

play04:40

that is your display, and that is connected to a video adapter.

play04:45

These adapter or controller are responsible or they are in charge of

play04:50

how these devices actually work.

play04:52

And then the CPU, we have it here,The Central Processing Unit,

play04:57

along with these controllers

play04:59

are connected by a common bus,

play05:03

that we have here.

play05:04

This line over here, represent the common bus.

play05:08

This one is which we talked about

play05:09

And we see that they are all connected to this bus, it is common to all of them

play05:14

and that bus is connected to a shared memory.

play05:17

Alright!

play05:18

Let's see this in more detail.

play05:19

So, here I have some points written down.

play05:21

Each device controller is in charge of a specific type of device.

play05:25

So, here we have device controllers,

play05:27

and each of these controllers or adapters

play05:30

are in control of some specific kind of device, as it is shown here.

play05:35

and then the CPU and device controllers

play05:39

can execute concurrently competing for the memory cycle.

play05:43

Now, what do we mean by this line?

play05:45

So,we see that they are all connected to a memory controller over here.

play05:49

And why is that?

play05:50

That is because

play05:51

I already taught you in the first lecture that

play05:53

Whenever something has to be executed or loaded,

play05:58

It has to be loaded into your main memory.

play06:01

Your main memory is your RAM,

play06:03

Random Access memory that you have

play06:05

and don't worry if you don't know about it in detail.

play06:08

I will do another lecture, explaining about

play06:11

the storage and memory unit, that we have.

play06:13

So, just know that whenever something has to be executed,

play06:17

it has to be loaded into your main memory.

play06:19

And your main memory is not unlimited or infinite but it is limited.

play06:24

It is a finite amount of memory that you have.

play06:27

like in your laptops or in your desktops

play06:29

you may have two GB of RAM,

play06:31

or eight GB of RAM so on and so forth.

play06:34

So, depending on the size of the RAM,

play06:36

that is the amount of memory or main memory that you have.

play06:39

And whenever you execute something,

play06:41

that has to be loaded into your main memory.

play06:43

Now, We see that

play06:45

All these devices in order to work they need to be loaded into the main memory

play06:49

for any execution that has to be performed.

play06:53

and then the disk controllers or the adapters will take care of these.

play06:57

and this has to be loaded into the main memory.

play07:01

We see here that all these device controllers along with the CPU

play07:05

can execute concurrently.

play07:06

Now, what do we mean by concurrently,

play07:08

concurrently means that

play07:10

all these devices or controllers can execute at the same time.

play07:16

Now, let's take an example

play07:18

Suppose you are watching something like a video or a movie on your monitor,

play07:23

and at the same time you can minimize

play07:25

and type something using your keyboard in Microsoft Word.

play07:28

Now, when you do this you don't experience lag.

play07:31

You never experience lag like

play07:33

when you are typing something your video gets paused or like that

play07:37

Why?

play07:38

Because they are all working concurrently, working at the same time.

play07:42

That is how powerful your system is,

play07:44

and that is why you have to appreciate the beauty and power of your system.

play07:48

In order to make all these work seamlessly

play07:51

Without any lag or any problems, what do we need?

play07:56

To ensure orderly access to the shared memory,

play07:59

a memory controller is provided.

play08:01

whose function is to synchronize access to memory.

play08:05

So, as I Have already told you,

play08:06

all these devices they need access to the memory.

play08:10

Because they all have to be loaded into the memory in order to work.

play08:13

And now we need to ensure that,

play08:16

all of these devices get their required share of memory

play08:20

So that they can be loaded correctly and executed in the right way

play08:25

without having any problem for the user.

play08:28

So what we have is the memory controller.

play08:31

So, we have a memory controller here,

play08:32

which ensures that every controller and every device

play08:37

gets the proper access

play08:39

to the memory that they need so that they can perform or work

play08:42

smoothly without having any problem.

play08:45

So, the memory controller synchronizes everything

play08:48

and makes everything works in a very smooth way.

play08:50

So, that is what we can understand by this diagram.

play08:53

And from this diagram, we can understand the basic structure of

play08:56

how things are arranged.

play08:58

So, first, we have the CPU,

play09:00

then the CPU along with the disk controllers

play09:03

which is responsible for the working of each device.

play09:06

Like I have shown here they are all connected by a common bus.

play09:11

This line represents the common bus

play09:13

and that is connected to the memory controller, which takes care of

play09:17

how the memory has to be shared between each device

play09:21

so that its working is proper and smooth.

play09:24

Alright!

play09:25

Now, I want to introduce some important terms to you.

play09:28

You have already seen the structure of the computer system.

play09:31

Just the basic structure of using that diagram.

play09:33

Now, I Want you to know these terms, which we are going to study here right now

play09:38

The first one is known as The Bootstrap Program.

play09:40

So, What is a Bootstrap Program?

play09:42

The initial program that runs

play09:44

when a computer is powered up

play09:46

or rebooted is known as the Bootstrap Program.

play09:49

So, a Bootstrap Program,

play09:50

is the first program that is executed

play09:54

or runs when you power up or reboot your computer system.

play09:59

So, when you go and press the power button of your computer,

play10:02

the first program that loads,

play10:05

that helps in powering up the system is known as the Bootstrap program.

play10:09

Now, let's see what are the features and functions of this Bootstrap program.

play10:13

So, the bootstrap Program is stored in the ROM.

play10:16

ROM stands for Read Only Memory,

play10:18

which is a kind of secondary memory.

play10:20

So, your Bootstrap program is stored in the ROM

play10:23

and then it must know how to load the OS and start executing the system.

play10:29

So, as I told you Bootstrap is the first program that loads

play10:33

when you power on your system.

play10:35

and that program

play10:37

must load your operating system.

play10:40

The Operating system is the interface between you and the physical hardware.

play10:45

So, Your Operating system is also a software.

play10:48

It is kind of a system software.

play10:50

So, that Operating system is already residing or stored

play10:55

somewhere in your secondary memory.

play10:57

And then the bootstrap program must know

play11:00

how to load that operating system and start it for you.

play11:04

Also I told you that

play11:05

Operating system is stored somewhere in the secondary memory.

play11:09

So, the Bootstrap program must know

play11:11

where your operating system is stored.

play11:13

And It must go there and invoke the operating system

play11:17

and It must load the OS kernel into your main memory.

play11:22

It must locate and load the OS kernel into memory.

play11:27

Now, what do you mean by kernel?

play11:28

The Kernel is like the heart of the OS,

play11:30

is the main part of the Operating system.

play11:33

So, that has to be loaded into your memory.

play11:36

And then the Bootstrap program,

play11:37

when you switch on your computer, it is the first program that runs.

play11:41

And it goes and finds the Operating system,

play11:45

and then the kernel of the operating system

play11:47

takes it and loads it into the memory

play11:50

so that the operating system will come live

play11:53

and after that the rest of the thing the operating system will take care of.

play11:56

So, that was about the Bootstrap program.

play11:59

Now, the next thing that

play12:00

I want to introduce to you is known as an Interrupt.

play12:03

So, let's see what an interrupt is.

play12:05

So, what comes to your mind when you hear the word interrupt.

play12:08

So in English, we know what is an interrupt.

play12:10

When you are doing something if someone comes and disturbs you,

play12:14

If someone comes and says

play12:15

"Please stop doing this work and do something else"

play12:18

that is an interrupt, we are interrupted.

play12:20

So, think of it in the same context,

play12:23

this is almost the same even for the case of the computer system.

play12:26

let's see how we can define this and what it actually is?

play12:30

So, the occurrence of an event

play12:32

is usually signaled by an interrupt.

play12:35

from the hardware or the software

play12:37

So, we know that the CPU is always working

play12:41

It is doing some work,

play12:42

and when the CPU is doing that work,

play12:44

sometimes the hardware or software, may interrupt the CPU.

play12:49

It may come and tell the CPU

play12:50

"Wait! just wait with whatever you are doing,

play12:53

and please execute this task that I am giving you, this is more important".

play12:57

So, the CPU has to stop and it has to execute the task that comes up.

play13:02

and that is known as an interrupt.

play13:04

So, the hardware may trigger an interrupt at any time

play13:08

by sending a signal to the CPU.

play13:10

usually by the system bus.

play13:13

We have different hardware in our system

play13:15

and the hardware can trigger an interrupt.

play13:18

and how does he do that?

play13:21

It sends a signal to the CPU.

play13:23

and how can he send a signal to the CPU?

play13:25

by the way of the system bus

play13:27

I showed you in the previous diagram what I mean by the system bus.

play13:32

So, here this line, which represents the common bus we have.

play13:36

Similarly, using a system bus

play13:39

the hardware can send the interrupt to the CPU,

play13:41

and the CPU has to stop whatever it's doing and has to execute the interrupt.

play13:46

So, we will see how the CPU responds to the interrupts later.

play13:49

So, let's understand what is mean by interrupt.

play13:52

Now, the next term I want to introduce to you is System Call.

play13:56

also known as the Monitor call.

play13:58

Let's see what it says.

play13:59

A software may trigger an interrupt

play14:01

by executing a special operation called as system call.

play14:04

Now, as I told you,

play14:06

when a hardware triggers an interrupt we usually called it as an interrupt,

play14:09

but if the software is causing the interrupt,

play14:15

then that is known as a system call or a monitor call.

play14:18

So, if it is hardware, we usually called it as an interrupt.

play14:22

If it is a triggered by a software, it is called as a system call or monitor call.

play14:28

So, I hope that made clear to you what an interrupt actually means.

play14:32

now let us see how does the CPU respond when it receives an interrupt.

play14:37

So, here it says

play14:38

when the CPU is interrupted

play14:40

it stops the work, it is doing

play14:42

and immediately transfers execution to a fixed location.

play14:46

So, I already told you how interrupt can arise, either from hardware or software.

play14:50

So, the CPU is already doing some work,

play14:53

and then immediately it gets an interrupt

play14:56

from either a hardware or a software,

play14:58

So, when the CPU is interrupted in that way, what does it do?

play15:02

It stops what it is doing,

play15:04

and then immediately transfers the execution to a fixed location.

play15:10

So, whatever the execution the CPU was doing, it just stopped it

play15:13

and transferred its execution to a fixed location.

play15:17

Now, what is the fixed location that we are talking about?

play15:19

The fixed location usually contains the starting address,

play15:24

where the service routine of the interrupt is located.

play15:28

Now, we have a new term here which is Service Routine.

play15:31

Now, what is a Service Routine?

play15:33

Service Routine is nothing but where

play15:36

what the interrupt actually wants to do is written.

play15:40

So, let's not go into the technical details,

play15:42

I will just tell you basically what it means.

play15:44

When an interrupt arises,

play15:46

there is something that the interrupt wants to do.

play15:48

Something it wants to execute,

play15:52

So, what has to be executed or what the interrupts want to do,

play15:58

is written in the Service routine.

play16:00

So, every interrupt has its Service routine

play16:02

known as the Interrupt Service Routine, So, every interrupt has its Service routine

play16:03

known as the Interrupt Service Routine,

play16:05

Sometime it is known as I.S.R.

play16:08

So when the CPU is interrupted,

play16:10

It stops what it is doing,

play16:11

and it immediately transfers its execution

play16:15

to the starting address of the interrupt service routine.

play16:20

So, interrupt service routine may be located somewhere

play16:23

and it has a starting address, from where it should start its execution.

play16:27

So, the CPU stops what it was doing,

play16:29

and transfers its execution

play16:32

to the starting address of the interrupt service routine.

play16:36

So, that is the first thing the CPU does when it is interrupted.

play16:39

and then what happens!

play16:40

The interrupt service routine executes.

play16:43

So, whatever is written in the interrupt service routine

play16:45

gets executed completely,

play16:46

And then on completion, the CPU resumes the interrupted computation.

play16:52

So, we know that the C.P.U was already doing something before

play16:56

So, when the interrupt arise,

play16:57

It transfers its execution to the interrupt service routine.

play17:02

then it executes it and when it is done the CPU can go back to where it came from.

play17:17

and it resumes whatever it was doing.

play17:20

So, this is how the CPU responds to an interrupt.

play17:24

And I hope that made it clear to you, how an interrupt is handled by a CPU.

play17:30

At least the basics!

play17:31

So, this was just a basic introduction to the computer system's operation.

play17:35

I will not go into great detail,

play17:38

because it is just the basics that you need to know

play17:40

before you really understand the details of the operating system.

play17:44

So, I hope this was clear to you.

play17:45

In the next lecture, we will see

play17:47

about the storage structure and memory,

play17:50

which is also an important topic, that you need to know

play17:52

for understanding the Operating system.

play17:54

So, thank you for watching this!

play17:56

and see you in the next one.

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Operating SystemComputer SystemCPU FunctionsDevice ControllersMemory ManagementBootstrap ProgramInterruptsSystem CallsService RoutineEducational Content
¿Necesitas un resumen en inglés?