1. Home
  2. Explore
  3. Computer Science
  4. Computer Software Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Computer Software Introduction

Transcript

So let me recap the last class "The lecture One". We are is still in the chapter One "the introduction to computer software". This was the lecture one. So in the lecture one we actually covered some very basic stuff. We started with what is - What are the computer components?-What is a computer software ? What are the types of software we have? What is an operating system? and What are the main parts and functions of operating system? and what are the categories of operating

system ? So these are the basic five topics we just covered in the lecture 1. So if I go one by one computer system components computer has four components 1. hardware 2. operating system and 3. application programs and 4. the users. Then What is a computer software ? A software is actually refers to the program that executes on the computer. It actually helps the computer to step by step to finish some tasks because we know computer actually cannot make their own

decision. So software actually helps computer , it actually shows computer with how to actually solve an individual problem the solve can be simple as adding two numbers or it can be complicated like you know copying a picture modifying a picture and so on then the next with there are types of software we have two types of software application and system software the difference between this two type of software is that we use

application software for specialized reason or for entertainment purpose or maybe to study okay etc etc and we assist you system software to actually maintain the system in system we mean our system resources and other management issues and then we have the system software it actually has four types of program in the system software so first we have operating system we have utilities we have device drivers you have language translators

what is the operating system it coordinates computer resources and then utilities program it will it is program is specified tasks related to managing computer resources and then we have device drivers allow particular input or output device to communicate with the rest of the computer system and then we have language translators that converts the programming instruction into a language the computer understand that means from Java to machine code to PHP

to Beijing code to Python to Machine 4 and so on then the operating system actually performs a type of function ok they actually manage computer resources it provides a user interface and also runs other applications that miss other softwares the main part of the operating system is kernel is a program that actually runs all the time then we have device drivers we have user interface and system utilities like antivirus backup software disk cleaners and so on and then we have the detailed function of an operating system managing our resources means you can at the same time manage memory processing storage and other devices then you can monitor system performance schedule tasks provide security and start up the computer provide user interface there are two types of interface you can be character based interface or it can be graphical user interface and running application means running any all types

of programs its may be a foreground there for example the PDF is a handing in the front end or foreground and in the back end there are there are other software's or programs are running in the back in then these are the common operating system functions management of the memory process management storage management device management monitor performance job scheduling user interface and security and now we come to the categories so there are the two three types of categories remember all of this

operating system actually does the same thing okay their functions are basically same but depending on the devices we actually change the algorithm or how to approach a certain problem for example first one is the embedded operating system that we use in smartphone cable to be turn on our boxes and so on then we have the network operating system that where we handle multiple servers UNIX and so on and then home standard an operating system that is the dexstar but the one that you are using and I am using and we have finally we have Windows we have Mac and we have UNIX and Linux and each of this operating system has some advantages has some DSPs advantages ok depends on which operating system you are using in Bangladesh most familiar is the Windows it's familiar not because it has advantage because this you know is easily you whenever you actually try to set up a new windows it's easily available so sometimes some softwares we

actually use them not because they are good because they are actually available most now next point that we have some mobile operating system as well blackberry iPhone Android Symbian Windows Phone so this is the all about the lecture one again what we did we actually focused on this five computer has four components what is a competent software that helps computer to do something what are the types of software two types application and system software what are the operating system it has three type of function help to manage resources a graphical user interface and run program you know sir yes sir if theorem one is trying to enter the year zones tell him to change his name okay we use a proper name there you know the parson functions it has seven to eight different functions main process management memory management and so on and there are three types of categories of operating system so that sums of our chapter one now in your have

any question regarding chapter one I guess no right that's easy so now we go to the lecture two so before going to the lecture two let's see what are the content of this lecture will lack we'll try again we'll resume the introduction of the computer system okay top level view of computer system that have actually computer system work and then we'll get to know that processor registers instruction execution how open system actually runs the program and interrupts so all these are very

actually exciting topics so I will go one by one so first of all the easy one okay interaction so what is actually a computer system as you can see from the definition a computer system is one that is able to take a set of inputs process them and create a set of output this is done by combination of hardware and software so that means if if a machine can take set of inputs process those inputs and create a set of outputs that

is a computer system and we actually use a combination of hardware and software for that now depending on what you are trying to do the requirements of hardware and software might change or a normal computer we have mouse and keyboard for input and for the output we have the monitor for in causes that we take in i/o BT for input we also have keyboard and mouse but for the output we also have a projector okay so it depends on the scenarios and availability of

resources the input and output devices may change but the computer system is whatever the takes input provides you with an output that is a computer system so if you have a smart watch that will be as also a computer system now what is an operating system now when a system is a program that acts as the interface between the user and the computer hardware and controls the execution of all kinds of program now before I have told you that operating

systems actually helps to manage control resources right so those resources are memory hard memory then we have different processes and then we have input/output devices so basically whenever you have a hardware that means whenever you write type something using your keyboard or you click something in your screen using your mouse get these our hardware's these instructions ok these are sent to your computer and the operating system it actually

communicates and facilitates between the other softwares and your hardware so if you look at the picture here this is an abstract view abstract means is not in detailed so we have different users all of them are using different types of software ok this correct they can be using system software or application software all these softwares they actually cannot communicate with the hardware directly they have to communicate through the operating system so if they want to take an input using keyboard they first asked operating system that I want to take it input from the keyboard then what it does it takes the input and sends it to the system software same goes for RAM or CPU whatever resources you have ok the way there is a processing power or the storage and so on it has to go through operating system there is one exception though we'll discuss the exception end of the class so what are the basic

elements at the top level view okay we have processor that controls the operation of the computer and performs data processing functions we have the main memory that stores the data and the programs also known as primary memory is volatile in nature we have input/output modules we have the move data between component external environment it consists of secondary memory devices communication equipment and so on we have system bus that provides

communication among processors and main memory and input output modules so - before going to the top view again we have me four main structural elements first one is the processor that is actually the brain of the computer most of here in Bangladesh we use Intel I Intel i3 i5 i7 this processors and some of us also use AMD so processor actually what it does okay it's a very small small device that actually does lot of calculation in the next class I will

actually show you a video of how actually processor work so it will make way you'll be able to understand more clearly but in short processor what it does it actually performs lot of calculations okay I mean then we have the main memory we know there are two types of memory memory yes yes so you said there's two type of processor mainly one is Intel Core i5 7 online is on other y5i 7 I this not mainly to type in Bangladesh it's a other is a me sir

yes the best among this true it actually depends what you want to do with your computer if you want you want it for the normal user okay that if you just want to you know play games or just watch movies and the angel is fine aim this they are trying to ensure to develop by specialized processor ok so it actually depends what you are trying to do with your computer works for normal use Intel is so far the best and if if I want to do some special work with using this processor then I can say

depends if on what you want to do you can go for it we aim dear ok sir so now let's go back here so we have the main memory we know there did different types of memory one is the hard disk that we all know ok so hard this then we have RAM we have ROM okay and then input modules and system bus is actually like a Rhodes or actually like a connection wares using those computer actually they send data from one part of the computer to another part of the computer so let's just look at the

picture so we have actually first as you can see we have actually four parts here first one is the CPU then we have the input output module that means they keyboard the mouse and whatever and then we have the main memory and then this is the fourth part the system bus so our whole computer actually divided into this three part CPU input/output module main memory and all of these are connected by the fourth part that is the system musts

so let's first focus on the system but what it does it actually is like a where there actually helps to transfer data they are all instructions from one part of the one part of the computer to another part for ISM from CPU to main memory if you want to send some data or instructions okay instruction means if you want to send a program so just you will use the system bus okay there just like the local bus okay but in inside the computer the transfer data from one part of the another part okay now let's focus on the next is apart input/output module okay as you can see there is a word here that is called buffer so I will discuss what is buffer Imperato modules are actually helps to take input from our different devices it can be a mouse it can be a keyboard it can be a joystick it can be a scanner and what is a buffer buffer is actually whenever you take an input that input is being sent from the

input/output module to a CPU using the bus but sometimes the bus might be busy okay it might be doing other work so what happens in that case whenever suppose you are writing something on your keyboard suppose you have typed you but at that same time the system boss is actually busy is actually doing some other tasks so what it does it cannot send the data from employer to module to the CPU so buffer is actually a very short memory okay our small amount of memory that can temporary save some data that means you name suppose your name is Sahib so if you type Sahib and if the say for some reason there are a lot of reasons that system bus can be busy so if for some reason the system bus is full or busy this buffer will actually save the data for a small amount of time that's how actually this input-output model works so we are done with this - then

let's come to the main memory so in the main memory that is you can take care it's a hard disk or we can also use our disk called secondary memory so Ram is basically whenever we say about the main memory we actually mean RAM random access memory why Ram why not trauma so basically main memory is something that from where computer ok actually takes instructions that means program and data and execute them now the problem is that RAM and ROM they are

actually fast but the Hardys that we have it's actually not that fast suppose if you have a hard disk of 1 terabyte that is thousand of 24 GB first of all it is called secondary memory ok where everything is stored everything that you see from starting your computer to a different movies running different softwares everything is stored there so whenever suppose you have a start with your computer and if you want you want to listen to a music or you want to browse internet so you open music player let's assume that VLC player and also at the same time you run the Google Chrome so whenever you run these software's this software's will actually fetched from the secondary memory and we load it to the RAM now why we are actually loading the software to the RAM because we know that CPU actually works very fast and secondary memory that means your hard this is to denote that very fast now why

hardness is slow we'll discuss it okay in the upcoming chapters but for now we'll just know the hard disk is slow okay so it's slow we need to actually transfer data very fast among memory to CPU so we use RAM RAM is actually way faster than the hard disk so we store the programs that we are using in the RAM at the same time the data related to the program so if I talk about it in this class you you were using the zoom platform so the zoom is actually loaded

into my second main memory that is Ram at the same time Kim I'm using a PDF reader that is also loaded into my RAM and other data the operating system lectured to it's also loaded into the main memory so I have zoom I have PDF reader I have the data of lecture 2 and so on okay and then finally we have the main part CPU central processing unit the brain of the computer okay in the CPU there are some terminologies we'll discuss in the upcoming slides for now what is PC pcs program counter as you

can see from the slide then we have IR IR is instruction register ma are a marriage memory address register MB our memory buffer register IO air is input/output address register and IO beer is input output buffer register so let me go one by one what is a program counter ok so each of this programs in the main memory have actually serial so that computer can understand which one to go first and which one to a second so this is called a program counter or the

instructions counter so computer actually keep tracks that I am executing program number one after finishing the program number one I will go to the program number two after finishing two I'll go to problem number three so pomper actually keeps track and to keep track it used this register ok PC program then we have ir instruction register so suppose I am executing instruction number one they are program number one this program from this main memory will be using the system bus will be loaded

into this one iron so that CPU can actually execute that instruction then we have memory address register what it does it actually contains the memory of address of different memories or at the same time it actually holds which memory I should go for for example if I told you that my house number is five okay this actually if you ask me your address and I say my house number it's five illa self where because it can be Utah sector six Road six then five it can do to

sector 10 road six then house number five and so on so memory addresses states and buffer agencies they actually help us to pinpoint the location of the instruction which instruction I am executing and how and then we have the input/output address resistors and buffer register so there's basically keep track which input devices I have mouse or keyboard and what are the addresses the port numbers and so on now as we have seen I have continuously told

about register register register so we will see what is actually registered processor registers what is actually register how it works and why we use register so first thing first the definition a processor includes a set of register that provide memory that is faster and smaller than main memory so that means our registers are actually memory that is faster than the main memory and at the same time smaller in amount try to try to remember one thing

that in computer ok there are different types of memory ok they have different type of sizes the higher the size the lower the speed that means if I talk about the highest memory in your computer that is obviously the hard base it is from 80 GB mm 24gb - mm evo 5 gb or 5 terabytes sorry so this memory they are actually huge in size but they're actually very slow in terms of speed so central processing unit can actually execute billions of instructions million means you know a

hundred crore so it can execute hundred crore instructions in one second that means if you ask it to add thousand numbers in and it it can do it within one second ok or if I asked you to add billion numbers it can do it within one second so you see CPU actually is very fast and to work with the CPU properly to keep the balance we actually need faster memory so then we have the main memory that is faster than the secondary memory

but still there are some issues and that's why you use other types of memory called register latch cache memory you have you may be familiar with the term cache so this is the idea okay so register it's kind of memory that is smaller than the main memory and faster registers normally measured by the number of bits they can hold so if a register can hold 8 bit its core 8 bit register it can hold 32-bit it called 32 bit register not bite okay remember from eight bit we get one bite so if it can hold eight bit we call it a bit register if it holds 32 bit we call it 32 bit registers now what is the function of the processor it actually exchange the data with the memory is it the only task obviously no it has many other tasks but it is one of the tasks so there are two types of registers on its user visible and its control and status registers what is the difference between this two user visible registers

you can actually access you can manipulate the data okay or you can actually request to access the data control and status registers they are actually beyond you they are automatically controlled by the computer for their own use now we'll talk about user-visible registers what are the user-visible registers are before going to the definition let's first go through the name general purpose registers data register address register condition could registers from the name you can guess general purpose register can store the general thing like data and address it can hold variable and temporary result so that means it is suitable for every general task data registers can hold numeric values such as integer and some architectures floating-point values characters small bit errors and other data that means data bit registers actually store data that's it address

registers as you can see from the name use holds addresses so it can be an index register segment pointer or stack pointer so what is the index or signal pointer we'll come back to that and stack pointer we'll discuss in the upcoming classes and finally we have conditional code resistors they are also referred as flag so their use are set beat by the CPU hardware for the result of an operation so what is the flag suppose one operation is done and you

want your computer to know that I am done with this one then we use a flag operator that means this is done so these are the condition codes now let us go into the details index registers values added and offset from some address index addressing is a common mode of addressing that involves adding an index to base value to get the effective address so let me explain this one over here so let us assume that in computer ok we have memory addresses like this one 1101 1102 so let's assume the addresses are like this

okay so these are the smallest addresses but the problem is a computer memory is huge this amount of small address doesn't actually help so the addresses are like this and so on okay we use hexadecimal to make things easier but here as you see the problem is this is a huge address is very difficult to remember now just like your college student ID so it's actually almost seven digit student ID but sometimes what we do instead of using

student ID we actually use the serial number because it's easier to remember easier to track okay again another point is suppose your ID is 1 3 4 4 foot 2 then your friend's ID is 1 3 4 4 4 3 so instead of calling you 1 3 4 4 4 2 I can just call you hey 42 8 43 ok because I know that 1 3 4 4 5 is common to everyone's name same task is done by the index registers ok so a value is added as an offset okay so that you can just call it a simple name so that means if

your ID is 1 3 4 4 4 2 your I will just call you 4 2 and this part will be added later because I know that next one is 43 and so on so we'll actually see some examples and some maths related to index registers so if you don't understand or don't get the full picture don't worry we're also we have a lot of times segment pointer again with segment addresses memory is divided into segments which are variable length block of course so again we actually don't

know what is a segment we will discuss it in the upcoming chapters and then we have the stack pointers store the address of the last program request in a stack so suppose you are working with back to back to programs so it always skip tracks which one is the last program you keep you have used four requests so to sum things up I know there is a lot of values here so we have this is the top view of our computer in the top view we

actually have four parts a CPU a main memory and I input output module our main memory is connected by a system bus in input-output model we have different devices mouse keyboard and also buffer which actually stored the data for a small amount of time before sending it to the CPU or the main memory a main memory holds instructions and data but here the instruction or the programs and not all the programs it only holds the program that you are using at a at a

certain moment and then we have the CPU it has different registers to perform the executions or the instructions properly we have program counter that actually counts which program you are executing next we have IR that actually holds the instructions we have four different registers to actually hold the addresses and then we have the execution in it the most important part that actually executes the instructions so this is the top level view and then we

have registers registers are actually a small amount of memory that is actually faster than the main memory we call them by their memory size so it's going to be 8 bit of the 32 bit there are two types of registers user-visible and the control status so user-visible registers have different functions one is used general-purpose for storing data and address and that is used only for data and one other one is used for address so there are different types of address

registers index segment stack pointer and then we have the conditional code registers that is used as flag so these are the four types of user visible register that is the one we are done so user visible registers are for type 1 actually general another one actually hold Datta another one actually holds addresses so general G data addresses and then the last one is control codes and then have the control and status registers so continued status registers are again their different types so first

one is memory address register is specify the address in the memory for the next read and write then we have memory buffer register input/output address resistors buffer register program counter instruction register and then this - now here as you can see first fix you all we have already read them here you see these are the control registers memory address register buffer registers input address registers buffer registered program counter and

instruction registers so all these are actually from CPU so simply actually use that control and status registers and there is two more here as you can see spatial purpose register so what they do they actually usually include the program counter and the status registers and the program counter and status register might be combined into a program status one esw so again one more time there are a lot of force that you actually don't understand right now like

what is actually a program status word so eventually we'll discuss them okay the lesson I want you to take from this first eight slide let me cover yes the first eight slide that again if I go back to the beginning that what is the computer system it is a comm it is a combination of software and hardware that can actually take input from the user process that input and show some output so your calculator is also a computer system because it takes input

from you it actually processes them and does the calculation and shows you the output then we want to understand what is the operating system it actually acts as the interface between all the software applications and the CPU Ram and other hardware's the basic elements of computer will have this four part CPU system bus main memory and input/output module each of them have their own separate tasks so after that we go to the registers okay because the register is very common here and there are two types of register first one is user visible that can be read or written by the machine instructions that mean you can actually read them or write them okay so there are four types of user visible register you just remember their name and what are their functions is actually easy to remember then we have different types of control and status registers they're actually controlled by

the CPU itself okay and again here we have some jargons like program status ones so if you don't understand don't worry just try to remember so far what we have planned then that last topic for today Kim so let me just skip this here so instruction execution in your computer whenever you run a program each program you already know you have actually developed your own projects so you know how hard it is okay once you first want to develop a project it's

actually not that easy the code becomes huge normally whenever you are actually solving a problem in the class the code is hundred lines maybe but whenever you are trying to develop a project the code becomes actually almost thousand lines depends on what type of project you are doing it will at least it will be minimum or 500 lines so so suppose you have developed a project your project name is what name should you call it let's call it a swapping management system using your software I can actually buy something of him whenever I actually run your program all the program the code of 500 line okay let's assume your code has 500 line will be actually loaded into the memory now the problem is even though the whole 500 line is loaded into the memory or I can instead of calling it 500 lines let me call it 500 instructions so in mine main memory that is less assume this is Ram in my RAM I

have a program that is my shopping management system and it's the number of instruction is 500 so I have to execute the 500 lines one by one to run the program smoothly so this this is called instruction execution so how actually it happens first we start with selecting the program which one we want to run so my program is shopping management system then what the computer does okay it actually fits the next instruction that means if you there a 500 instruction it

starts with obviously one right so it will face the instruction number one it executes the instruction number one then after that it checks whether there is any more instruction or not if there are more instruction it goes again and if there is not it actually stops the program so then in my program we have line number two and line number three and so on so again it will go to the execute States and from executed state it will again go back to the fetch stage faith states means a collecting next instruction so he did first start with one it will execute one and then it will check whether there is any other instructions here or not if there are not any other instruction it will go to the second okay it will fetch the second you will execute the second and just like that it will go up to 500 lines now there are obviously some catch here okay for example there might be a coordinating if-else

condition so if one of the instructions fulfilled your code might skip from line number three to line number 200 okay so these will not go into that details here I hope that you are understand on your own so what is this called this is called instruction execution by a processor okay so each program consists of set of instructions is stood in the memory we actually what we do we face those instructions we execute those

instruction and we wait for the next one this is called an instruction cycle and the processing required for a single instruction is also called instruction cycle then at a fundamental level we have this four steps phase instruction decode instruction execute the instruction and repeat the instruction so when I say decode the instruction it has actually has two meanings okay so for normally decode means that trash translating your Java code to machine

code okay this is one kind of decoder because computer if it want to execute a program it only understands 0 & 1 so if you want to make sure that your program is executed very fast on your own you have to make sure that it is decoded it's not coded okay so that we don't have to decode it and then we have the execution cycle and we keep repeating this one so this is actually another view so this is my main memory this is the CPU so this is the program well one that means well the program condition is true that means you are running the program it will fetch instructions from the memory this is our memory okay so 1 2 3 4 so from there it will face instruction one by one it will execute those instruction and we will store the result so that's where we will finish our today's class now if you have any any questions you can ask now

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent