01 02 Overview of Computer System Structure — Transcript
Full transcript
- 0:08[Music]
- 0:21overview
- 0:23of a computer system structure
- 0:27computer system
- 0:28organization so what are all the parts
- 0:32and how they
- 0:33fit together
- 0:34okay
- 0:35so computer system operation
- 0:38so one or more cpus device controllers
- 0:41connector common bus
- 0:43providing access to shared memory
- 0:45so concurrent execution of cpus and
- 0:48devices
- 0:49competing for the memory cycles
- 0:52so basically
- 0:54all the
- 0:56components or peripherals or devices
- 0:58connected to computer systems house
- 1:00watch called controllers
- 1:02these controllers communicates with the
- 1:05cpu via the operating systems
- 1:08okay so we provide device drivers for
- 1:12the controller
- 1:13so if the user want to communicate with
- 1:15the hardware
- 1:17okay it will be possible via this
- 1:20controller communicating with the
- 1:21operating systems and then really
- 1:23hardware
- 1:24okay so all devices and peripherals in
- 1:27the computer system has their own
- 1:30controllers
- 1:31just like on this diagram here you've
- 1:33got this controller for the disks you've
- 1:36got usb controller if you are using the
- 1:38usb mouse keyboard and printer and other
- 1:41devices
- 1:42okay
- 1:43so your graphic card also has an adapter
- 1:48okay and all of this are using
- 1:51a system bus or a common system bus
- 1:54to communicate
- 1:56and to move data
- 1:57from the devices going to the cpu
- 2:03computer system operation
- 2:06so i o devices and the cpu can execute
- 2:09concurrently
- 2:11when say i o
- 2:13this pertains to input output
- 2:15or any peripherals attached to your
- 2:17computer
- 2:19so each device controller is in charge
- 2:21of a particular device type so let's go
- 2:23back to the previous slide here as what
- 2:25i mentioned earlier each device here or
- 2:28each peripheral has their own device
- 2:31controller
- 2:33okay
- 2:34each device controller has a local
- 2:36buffer once a local buffer that pertains
- 2:38to the local memory
- 2:40each device controller type has an
- 2:43operating system device driver to manage
- 2:45it
- 2:46so every time you purchase a device for
- 2:48instance a printer there should be a
- 2:50device driver associated with it
- 2:53okay so any peripherals or any hardware
- 2:56that you want to attach to your computer
- 2:58should have their own device driver
- 3:02okay so sometimes the operating systems
- 3:04provides a genetic driver for the device
- 3:08all right
- 3:10next so cpu moves data from and to the
- 3:14main memory
- 3:15to or from the local buffers and that
- 3:18reverses via this system bus here
- 3:24the i o is from the device the local
- 3:27buffer of the controller
- 3:30and then device controller informs the
- 3:31cpu that it has finished its operation
- 3:34by causing an interrupt so we will be
- 3:37dealing with interrupt on this
- 3:39video lecture
- 3:41okay
- 3:42there are also what you called a
- 3:44bootstrap program okay under computer
- 3:46system operation you've got the shared
- 3:49memory between cpu and io cards
- 3:52time slicing for the multi-process
- 3:54operation
- 3:56interrupt handling okay so clock
- 3:59hardware software and implementation of
- 4:02system calls
- 4:06common functions of interrupt
- 4:09so interrupt transfer controls to the
- 4:12interrupt service routine generally
- 4:14through the interrupt vector
- 4:16which contains the address of all the
- 4:18service routines
- 4:20so interrupt architecture must save the
- 4:22address of the interrupted instruction
- 4:25a trap or exception is a
- 4:27software-generated interrupt caused by
- 4:30either
- 4:31by an error or a user requests
- 4:34so an operating system is an interrupt
- 4:37driven
- 4:38when you say interrupt
- 4:40every hardware or every i o devices in a
- 4:43computer system has their own interrupt
- 4:45numbers or interrupt address
- 4:47okay
- 4:49so
- 4:50when a device needed to signal the cpu
- 4:53for instance a printer is running out of
- 4:56paper
- 4:57and then the printer will inform the
- 4:59user hey i'm running out of paper
- 5:02okay so it will issue an interrupt to
- 5:05the cpu okay so causing a notification
- 5:09to the end users
- 5:11that's an interrupt
- 5:12okay
- 5:13so
- 5:14interrupt has the highest priority when
- 5:17it comes to the execution
- 5:19in the cpu
- 5:21so any device that would cause interrupt
- 5:24will be entertained by the cpu
- 5:26so whatever the cpu is doing or
- 5:28processing if there would be a priority
- 5:30interrupt then it will stop temporarily
- 5:33the execution of the program to
- 5:35accommodate the interrupt
- 5:37so even users can cause an interrupt to
- 5:40the computer systems or to the operating
- 5:42systems
- 5:43okay so you just have to press something
- 5:45like control alt or control break
- 5:48okay so if you want to
- 5:51cause an interrupt on the execution of
- 5:53the application or programs
- 5:58interrupt timeline
- 6:00okay
- 6:01so
- 6:02how do the cpu and the io devices
- 6:06interact with each other
- 6:08okay so basically your cpu
- 6:10is running the user programs
- 6:13it also
- 6:15process
- 6:17io interrupts
- 6:19okay
- 6:20now if the i o device is idle
- 6:23or meaning there is no interrupt okay
- 6:26coming from any of the i o device that
- 6:28would cause the cpu to temporarily stop
- 6:31or hold the execution so basically
- 6:34your cpu is kept busy on the user
- 6:38program execution
- 6:40all right so if there would be an
- 6:42interrupt coming from the device so
- 6:44basically your cpu will accommodate
- 6:47the interrupt address it and then
- 6:50afterwards it will resume with the
- 6:52execution of the user programs
- 6:55all right so every device in a computer
- 6:58system has what you call
- 6:59interrupt address
- 7:01or io
- 7:02or we call it the irq okay
- 7:06or interrupt request
- 7:09okay
- 7:12how do operating system handle interrupt
- 7:15so the operating system preserves the
- 7:17state of the cpu by storing the
- 7:18registers
- 7:20and the program counter
- 7:21so we mentioned this on computer
- 7:24architecture
- 7:26our computer organization and
- 7:27architecture
- 7:29so determines which type of interrupt
- 7:31has occurred it could be polling or the
- 7:33vector interrupt system
- 7:36all right so the interrupt would be it
- 7:38might be coming from
- 7:40the cpu initiating okay so who has
- 7:43problems something like that doing some
- 7:45polling
- 7:46okay
- 7:47the the action of the interrupt is
- 7:49initiated by the cpu
- 7:52now if the action is initiated by the i
- 7:56o devices
- 7:57okay so we call it
- 8:00vectored interrupt systems
- 8:03okay so separate segments of code
- 8:06determine what action should be taken
- 8:08for each type of interrupt
- 8:13let's have an example here of an
- 8:15interrupt driven i o cycle or interrupt
- 8:18drive biocycle
- 8:20so first you've got the cpu running
- 8:24okay
- 8:25and then device driver initiates an i o
- 8:30so it will be transfer
- 8:32okay
- 8:33on the i o controller
- 8:35so initiates an i o
- 8:37afterwards input is ready output
- 8:39complete or error generates an interrupt
- 8:41signal
- 8:42if there would be an interrupt okay so
- 8:45that would be forwarded to the cpu so
- 8:47cpu receiving interrupt transfer
- 8:49controls to the interrupt handler
- 8:52now the interrupt handler
- 8:54processes the data
- 8:56returns from interrupt
- 8:59so afterwards the cpu resumes processing
- 9:03of interrupted tasks
- 9:06and then
- 9:07it's a cycle or that completes the cycle
- 9:13io structure so two methods for handling
- 9:16io so after the i o starts
- 9:19the control returns to the user program
- 9:21only upon i o completion
- 9:25okay so the second one would be io
- 9:27starts
- 9:29control returns to the user program
- 9:31without waiting for the i o completion
- 9:34okay so this two here
- 9:37is characterized by synchronous or
- 9:39asynchronous
- 9:41so when you say synchronous it will not
- 9:43proceed
- 9:45with the execution of the remaining code
- 9:48for the user programs okay so without
- 9:50completing the
- 9:52interrupt
- 9:54okay so the other one is what's called a
- 9:56synchronous
- 9:57it will resume the operation of the
- 10:00cpu for the execution of user programs
- 10:04without waiting for the i o completion
- 10:06something like okay so there would be an
- 10:08interrupt
- 10:09so let me process the interrupt okay so
- 10:12if it is not yet then i could go back
- 10:14to the requesting process for the users
- 10:18so on the synchronous you have to wait
- 10:21for the completion of the interrupt
- 10:23before you could resume the operation
- 10:25so that's the difference between
- 10:27synchronous and asynchronous
- 10:30okay so for synchronous
- 10:32you have to wait for the completion of
- 10:34the i o
- 10:35prior to the resumption of the operation
- 10:38for a synchronous
- 10:39so without waiting for the i o
- 10:41completion you could go back
- 10:43okay immediately with the requesting
- 10:45process from the users
- 10:50so after an i o starts control returns
- 10:53to user programs only upon i o
- 10:55completion so this is what you call
- 10:57synchronous here
- 10:59okay so weight instruction i tells the
- 11:02cpu until the next interrupt
- 11:04so if there would be a loop a contention
- 11:06for the memory access
- 11:08and then at most one io request is
- 11:11outstanding at a time no simultaneous io
- 11:14processing
- 11:17okay
- 11:17now after the i o starts
- 11:20control returns the user program without
- 11:23waiting for the i o completion
- 11:25so that is our
- 11:26asynchronous here
- 11:29okay
- 11:30so we have what you call system called
- 11:32request the os to allow users to wait
- 11:35for the i o completion
- 11:37and then you've got the device status
- 11:39table which contains the entry for each
- 11:41i o device
- 11:42indicating its type address and state
- 11:48so os indexes
- 11:50into io device table
- 11:52to determine device status and to modify
- 11:55table entry
- 11:56to include the interrupt
- 12:05[Music]
- 12:17you
About this transcript
This page contains the full transcript of 01 02 Overview of Computer System Structure by Santelmo, generated from the public captions YouTube serves with the video. The transcript has 1,471 words across 299 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.