[00:00:08] Okay, cool, guys. So, I just started the recording as well. Very good afternoon. So, let us wait for one more minute. I do see participants joining. In the meantime that we are waiting, I'm just going to put a message in the chat. All I want is a response to the message. [00:00:35] i don't want you to type a separate message and respond how can i respond suppose if i want to [00:00:43] respond to the ankish kumar chowdhury that message let me first to share my screen i think [00:00:53] that would help you to understand okay cool so now let me close this and [00:01:18] let me minimize this now let me go ahead and share my screen and hopefully you are able to [00:01:28] see my screen now what i have is the conference screen and in this hope you are able to see my [00:01:43] screen here Daiva Prasada Rao Konala has responded the last message has sent [00:01:51] suppose if I want to respond to this message I have another option using the [00:01:57] emojis that is more options and if can go I can just click here thumbs up so I [00:02:06] can also give any other more reactions whatever we would like to give i want you to respond like [00:02:15] this to my message so yeah it will show who has responded to me but can one of you please respond [00:02:23] to that dk message like how i responded yes exactly something like this only i want the [00:02:30] response from all of you so the message what i'm going to type is [00:02:37] a non-computer science graduate so if you are [00:02:51] if you are a non-computer science graduate give me a thumbs up [00:02:55] if not just give thumbs down that should be fine [00:03:02] so i just sent you the message please give me a thumbs up and thumbs down as well [00:03:10] that will also give me the proportionate about this because that's going to help me to [00:03:20] take these basically this foundation of computer science theory sessions [00:03:24] is all about executing our programs okay so basically yeah even computer science graduates [00:03:37] please give me a thumbstone so that i will be able to understand the representative [00:03:47] since i said not to give a different message please respond to my [00:03:53] save itself. Okay, cool. If not more, at least I believe there are equal number of non-IT [00:04:11] in our class. So, okay, that gives me a good perspective. I'll just leave it for another [00:04:23] 30 seconds whoever has responded please go ahead and respond another 30 seconds [00:04:53] finish please respond with that you can respond using this to move the cursor onto your message [00:05:01] you'll be able to respond not able to hear okay the suraj [00:05:20] probably you need to check your connection or the mic [00:05:27] okay cool so we are good 30 seconds so let us see the ratio it's almost like [00:05:35] two-third and one-third that's what I could make it up from the numbers what [00:05:41] we have it's almost like out of 150 50 are non-computer signs okay cool this [00:05:51] will be kept in the background when we are going to when we are going to discuss this okay cool [00:06:03] so let me stop sharing my screen at this point of time what i'm going to do is i'm just going to [00:06:11] check who are all there in the lobby just admit them all so that they also get into the classroom [00:06:18] before we start. So now let me share my screen. Okay, cool. So I guess my screen is visible. [00:07:12] I just shared the presentation. So we are going to start our journey. So what is our journey? [00:07:25] Our journey is to understand the foundations of a computer system. [00:07:31] that is our [00:07:34] and in this journey [00:07:37] what is the objective [00:07:41] objective is basically to understand [00:07:44] how the traffic [00:07:47] from application goes to hardware [00:07:51] we started referring it as digital hardware [00:07:54] nowadays and [00:07:57] also understand what a computer actually does [00:08:00] There are so many things we do with the computers these days, but how is that getting transformed [00:08:10] or transported to the system and how it interprets, how it functions, and then how it delivers. [00:08:23] That is the objective of this session. [00:08:27] So since we have almost like more than one-third of our participants [00:08:33] from the non-computer science background, [00:08:38] I'm going to go a little slow for the benefit of you guys. [00:08:42] For IT background participants, [00:08:47] this would either be a refresher [00:08:50] or it can be an opportunity to go in-depth, one of these. [00:08:55] So, probably this session and the next session, for the benefit of our non-computer science background participants, we are going to go a little slow. [00:09:10] Okay. [00:09:12] Now, we are going to spend three hours. [00:09:15] So, what is the session theme? [00:09:17] Basically, the session theme is from application to digital ad. [00:09:23] Okay, cool. [00:09:24] Now what are our objectives? What are our focus? Because our theme is application to [00:09:33] digital hardware and if that is the case then what should be our focus? First we are going [00:09:42] to understand how a computer system is constructed. We have seen most of us would have seen servers [00:09:53] And if you're not, you have seen the server personally, [00:09:58] then at least you might have seen it, [00:10:00] and you should be able to imagine it. [00:10:04] And within that system, [00:10:07] how hardware and software is abstracted? [00:10:12] That is the second thing we are going to understand. [00:10:16] And then a couple of components, [00:10:20] like central processing unit, [00:10:23] memory, leverage, Ivo. [00:10:27] Ivo is nothing but input-output system. [00:10:31] So we are going to understand that. [00:10:33] And finally, we are also going to understand [00:10:35] how the instruction is getting executed [00:10:39] within our computer system. [00:10:43] Okay. [00:10:45] So basically, what we are going to exactly do? [00:10:47] We are going to understand [00:10:51] And when I click an application, what exactly happens inside our computer? [00:10:56] I have a laptop. [00:10:58] I can try to open a PowerPoint presentation. [00:11:03] And that's what exactly I have done. [00:11:06] And that Microsoft PowerPoint has opened this PowerPoint. [00:11:10] And then I'm sharing with you all. [00:11:15] So how did this happen? [00:11:19] Is it something that the CPU executed it? [00:11:23] Is it something that memory has stored it? [00:11:29] Is it something that operating system has managed it? [00:11:33] When I say managed it, what I meant is, [00:11:37] is operating system managing my command [00:11:40] and then handling it and handing it over to the hardware? [00:11:48] So the operating system, is it managing it? [00:11:52] And finally, where did this file open from? [00:11:57] From my hard disk. [00:11:59] If I don't have a hard disk in my system, [00:12:02] where will I store this PPT? [00:12:07] So now, out of this, which is the right answer? [00:12:12] Basically, all of them are right answers. [00:12:15] Because if we think that CPU is the only part which is inside our computer, then we are mistaken. [00:12:32] A computer is simply not just the CPU. [00:12:36] Computer is not just the CPU. [00:12:42] Now what? [00:12:43] More it has. [00:12:50] So a computer is a system. [00:12:53] What does it do? [00:12:54] The system. [00:12:55] System is going to generate a cooperation between the hardware and the software, which is going to work together. [00:13:07] What they are going to do by working together, they will accept input, which is my request of opening up this particular presentation. [00:13:18] then it is going to process the information [00:13:22] because request I have given open this PowerPoint. [00:13:27] When I double clicked, it opened. [00:13:31] Or I can open the PowerPoint application, [00:13:34] file open, name of the file. [00:13:37] So it has accepted the input. [00:13:40] Now it needs to process this input. [00:13:43] So for computer, this becomes an information [00:13:45] that it needs to process. [00:13:49] now while handling this ppt i am making some modifications immediately i'm going to the option [00:13:59] file save or i'm just clicking at the save button so again it has accepted the input it has to [00:14:07] process it not only processing it it is also supposed to store this so that i can retrieve [00:14:15] it later so that means process also includes storing data and as of now i'm connected over [00:14:29] internet and then i connected to the zone and we are all connected so now how am i connected to you [00:14:38] through my laptop laptop is also a computer so what did my laptop do my laptop could identify [00:14:48] what are all the Wi-Fi connections that is available in and around itself and then it [00:14:57] connected with the help of authentication. [00:15:00] So now my laptop has the ability to identify the Wi-Fi in and around, connect to it and [00:15:09] open up itself to the internet. [00:15:14] So external devices, when I speak about the external devices, it could be an another [00:15:20] external additional monitor that you have attached to your laptop or computer or it could be an [00:15:26] external keyboard and mouse you might be using a mouse which is attached to the bluetooth [00:15:33] so mouse is an external device it is not part of the laptop so it should not only establish [00:15:43] the connection with the external devices but it also need to communicate because [00:15:51] the reason that we are connecting our external devices is basically to use it so if i am not [00:15:58] able to use then what is the point of connecting the device into the computer system and also [00:16:10] produce useful results i have opened my powerpoint and now i went into the full screen i clicked it [00:16:23] now this ppt is shown in the entire screen so it is producing some results as well [00:16:31] on the another context suppose if you have written a c program let us assume we have written a c [00:16:38] program now you have written the program program is basically going to accept two numerical numbers [00:16:49] and display the addition and product of those two numbers so now [00:16:58] there are two three things that is happening through this program so assume that you have [00:17:04] the c compiler in your laptop you comply compiled the c program and you are running the c program now [00:17:10] when you are going to run the c program the first thing it is going to do is it is going to ask for [00:17:18] two integers so the moment i give five and two for example what it is going to display [00:17:26] me on the screen is the sum of these two integers is seven and the product of these two [00:17:33] integer in these two integers is n first thing is it executed my c program that's what you need to [00:17:47] understand that is the first step assuming that the executable is already available so you [00:17:54] give the c program name the first thing is it executed the program it could understand what [00:18:03] is the content of the program it could understand what is the objective of this program and it can [00:18:09] also understand the instruction that we have given inside the program so we have given four [00:18:16] instructions ask user to enter two teachers that is number one first instruction so now the computer [00:18:28] has understood [00:18:30] that instruction and it is asking me to [00:18:32] enter two integer [00:18:34] numbers. [00:18:35] The second instruction is [00:18:37] accept. [00:18:40] Now as an [00:18:41] individual I am typing 5 and 2. [00:18:44] That is supposed to be [00:18:46] accepted by the program. If it is not [00:18:48] accepting then it cannot [00:18:49] proceed further. [00:18:51] Because our objective is to calculate [00:18:53] sum and product of two [00:18:55] integers. [00:18:58] So now, once it has accepted the input from the user, that is me, [00:19:06] now it has to again calculate what is 5 plus 2 and what is 5 into 2. [00:19:13] So there is a processing involved in between before showing the results. [00:19:19] So for anything and everything you wanted to calculate, you have to process. [00:19:27] So how are we going to process it? [00:19:31] And how are we going to get the result? [00:19:34] This entire cycle, we are going to understand. [00:19:38] In case of some calculations to be done or in case of some validation to be done [00:19:43] or in case if we have to do some verification of the acceptance, [00:19:50] then we need to add them as a functionality to our code. [00:19:54] So now, when I say the word computer, what is the first thing that comes to your mind? [00:20:04] You may say CPU, processor, laptop, desktop. [00:20:10] If you are using a Windows system, then Windows operating system will come to your mind. [00:20:17] Memory, hard disk that is storing your data, keyboard which is accepting your input, mouse [00:20:25] also for input, monitor for display. [00:20:31] From all these things, suppose if I remove CPU, can the computer execute anything? [00:20:45] Obviously, it will not be able to. [00:20:51] What if I have CPU and memory, but I have removed the storage? [00:20:59] So it may be possible to run your program, calculate 5 plus 2, calculate 5 into 2, and display 5, 7 and 10 as an output. [00:21:14] But end of the instruction, if you have said, store this as a file, it will not be able to do because there are no storage devices available. [00:21:26] So in all of us laptops, we will have memory, we will have CPU, we will have disk, and we will have network interface. [00:21:37] These four are the pillars of the system. [00:21:42] And without any of these, you will not be able to operate it effectively or efficiently. [00:21:53] Okay. [00:21:56] Now, we can see that a computer is not one component. [00:22:04] the miscut conception is [00:22:07] computer is one component [00:22:10] that is [00:22:11] so if it not having [00:22:18] only one component [00:22:20] that means it has to cooperate [00:22:23] who is going to cooperate [00:22:26] the operating system [00:22:28] now [00:22:31] when you are speaking about [00:22:35] the user [00:22:37] for example I wanted to open a word document [00:22:42] What we'll normally do, we double-click on the file in the Windows Explorer. [00:22:51] So when you're double-clicking the file name that is being displayed on your screen, [00:22:58] does the CPU understand the instruction? [00:23:02] Basically, double-click training.docx means that I need to open the document. [00:23:10] No. [00:23:11] So, that understanding is needed by the next level, the next layer. [00:23:21] So, that means there is a need of layer. [00:23:29] First thing is we have multiple components. [00:23:34] Second thing is there is a need of layer wherein probably on the top layer we will say user. [00:23:43] Giving a request open a report.doc. [00:23:47] the second layer is [00:23:50] the operating system [00:23:52] accepting that command [00:23:53] translates [00:23:56] that [00:23:57] the way the processing unit [00:23:59] processor understands [00:24:02] and then [00:24:04] give it to the processor [00:24:05] now the processor [00:24:08] will use [00:24:09] temporary storage [00:24:11] that is memory [00:24:12] and then it will give instructions [00:24:17] to its own sub-components. [00:24:22] So CPU have sub-components, the answer is yes. [00:24:29] Because CPU as a single entity will not be able to perform [00:24:33] the entire processing on its own. [00:24:36] So it has sub-components which CPU will take help of them [00:24:41] and then process. [00:24:44] when we see [00:24:49] what we see is a very simple [00:24:51] human action but [00:24:53] underneath that action [00:24:55] many components cooperate [00:24:58] very very very [00:24:59] important [00:25:01] the system [00:25:04] of cooperating [00:25:05] hardware and software [00:25:07] so simply we can understand [00:25:12] until now [00:25:13] that we have layers [00:25:16] one is user [00:25:18] second is application which is my powerpoint application i am the user and my powerpoint [00:25:27] application is running on my windows so windows is my operating system and that windows is running [00:25:37] on the bare metal and that bare metal has many components some of them is the cpu memory storage [00:25:50] input output interconnect etc etc so now let us look at the cpu let us start with cpu the cpu is [00:26:05] the component that is responsible for execution we also refer cpu as processor so think of the cpu [00:26:19] as the worker or decision-making engine inside the computer that's what you need to assume [00:26:31] so what it receives it receives instructions and it executes it but if it has to execute [00:26:43] that means it needs to have the ability to take decisions and also coordinate computational work [00:26:50] So, let me ask Kunder, like, give me an example of what it does. [00:26:59] Let us take an example that our application says, you have written a C program, right? [00:27:08] Wherein you are accepting two integers and calculating the sum and product of those two [00:27:13] integers. [00:27:14] So, in that, the application says, accept A and B. [00:27:22] is this a and b a and b are variables we don't know the value that the user is going to input [00:27:30] so we are assuming it to be a for now until the user input comes and b so two integers [00:27:39] as of now it's only an assumption no value attached to that variable but when the user enters [00:27:45] 5 and 10, then definitely the value 5 and 10 [00:27:53] is going to be available inside A and B. [00:27:56] So now A has the value 5 and B has the value 10. [00:28:02] Now using this A and B, referring to A and B, [00:28:07] because the processor will not know what user has entered, [00:28:15] and user might have entered it using the input device, [00:28:18] that is keyboard. [00:28:22] Whether it is an integrated keyboard in the laptop or whether it is an external keyboard [00:28:28] to the laptop, more or less, both are same from the technology perspective, but from [00:28:34] the security or user perspective, it may be a little different. [00:28:38] So now in the program, we are telling 10 plus 20, that's what the input we have received. [00:28:46] So now the CPU performs the computation. [00:28:52] If the instruction is to compare these two values and say if both of them are same, then [00:29:01] it is a comparison action. [00:29:03] The CPU performs the comparison. [00:29:09] In case if instruction says move the data, then the CPU is going to execute the corresponding [00:29:17] machine level instructions. So now we are getting a new terminology. Sundar, you said earlier, [00:29:26] in our program we are having instructions. I totally understand. But when we are going to [00:29:34] get to know the other options that we have, then we need to clearly understand it. [00:29:43] So if the instruction says move the data, it will move the data from one [00:29:47] media to another media so exactly all the instructions that are provided by us as user [00:29:56] is interpreted by the operating system and the operating system is going to give those instructions [00:30:05] so is operating system going to give the instructions as we give no it will try to [00:30:11] to convert to the format where the CPU can understand, [00:30:17] because CPUs might also have been trained to understand. [00:30:20] So if that is the case, then yes, it is. [00:30:26] So now it has compared the data, [00:30:29] it has made the addition of the data, [00:30:32] it could get the problem, it can move the data as well. [00:30:38] But is the user allowed to perform this operation? [00:30:44] This is what the application is asking. [00:30:47] Application says that, okay, I understand. [00:30:49] I need to talk to operating system to get these things done. [00:30:56] First of all, that application will not even know [00:30:58] where exactly the file is stored. [00:31:02] Whatever we have recorded today, [00:31:05] it is getting stored in the cloud [00:31:07] and you are able to access it. [00:31:10] So that is what we are speaking here. [00:31:14] And if we are allowed to perform the operation, [00:31:19] then it's a human operation. [00:31:21] Since the CPU is processing, [00:31:24] then it's a system message. [00:31:30] So end of the day, [00:31:31] one thing I just wanted to confirm you, [00:31:34] or rather you need to confirm, [00:31:37] that a computer, whenever we see, [00:31:41] is simply not just a CPU. [00:31:44] and CPU is one of them. [00:31:48] CPU is not the only one. [00:31:51] We also have, apart from processor, [00:31:53] we will have memory, we will have storage, [00:31:56] we will have network. [00:31:58] Without this, you will not be able to connect [00:32:00] to your laptop or desktop or outside world. [00:32:04] You may not be able to bring in information, [00:32:06] you may not be able to bring in the data, [00:32:08] you may not be able to spend some time, [00:32:11] but it remains as is. [00:32:16] So CPU does everything on contrast. [00:32:21] Though CPU is not everything to the system, [00:32:25] but as far as execution is concerned, [00:32:28] it is the CPU which does that. [00:32:34] So the CPU executes instructions, [00:32:38] but it depends heavily on other components. [00:32:42] To obtain instructions, [00:32:44] not only obtain instructions, but also data, [00:32:47] and tour or communicate the results. [00:32:54] So this is very critical for us to understand. [00:32:56] It is the CPU that executes the instructions. [00:33:00] The operating system is the one which is creating the instructions [00:33:03] after accepting the input from the human. [00:33:08] So now this individual, after getting to know what is the MP number, [00:33:12] then we will get it changed. [00:33:16] That's not a big thing. [00:33:19] So now what we have understood [00:33:25] Basically, we have understood that CPU does everything, [00:33:29] but that is not everything for a computer. [00:33:32] A very, very layman's state. [00:33:35] So now does CPU depend? [00:33:38] Because it has to execute instructions. [00:33:39] Are there any dependency for the CPU to successfully execute the instruction? [00:33:47] Yes, CPU depends on memory. [00:33:50] The CPU cannot keep everything it needs inside itself itself. [00:34:01] We can't do that. [00:34:04] That's not the purpose of the CPU. [00:34:06] The purpose is only to focus on the speed and the quality. [00:34:15] But it depends on the memory. [00:34:19] Where it depends on memory, whatever execution it does, [00:34:23] Suppose if he has to store the value of variable A and B temporarily until the program closes, [00:34:32] then they might definitely add a layer to the gate. [00:34:41] So it depends. [00:34:43] Yes, the CPU depends on memory. [00:34:46] Not only that, CPU depends on storage also. [00:34:50] Storage is the third component. [00:34:53] This is part of this either server or desktop. [00:34:55] I just taken the desktop image purposefully to show you this is how the computers used [00:35:02] to look like some 20-30 years back. [00:35:10] It used to have a floppy drive, which we will use to write data to the external resource [00:35:23] to the floppy. [00:35:26] So now coming back, this is how the servers look like in today's scenario. [00:35:33] The main difference is, are we able to see any externally attachable device in the new generation servers? [00:35:45] No, we don't. [00:35:48] Are there any CD-ROM drives? [00:35:49] Are there any floppy drives? [00:35:52] Are there any ports that I can connect my USB drive? [00:35:56] Can I connect my external device? [00:36:00] Because we do all these things with our desktop or laptop. [00:36:05] But in today's server, that's not the case. [00:36:11] And first of all, we don't know how the server looks like, [00:36:15] but we can imagine that it would look something like this, [00:36:19] whether it is in our own data center or whether it is in the cloud. [00:36:25] This is how it looks like. [00:36:27] So the second unit that the processor depends on is storage. [00:36:38] storage retains programs and data both suppose if you want to open a pdf file for example [00:36:50] we simply double click the pdf file but actually to open the pdf file and show it to you on your [00:36:58] screen yours is a request yours is not a command that is the first differentiation so you have [00:37:08] requested computer to open a pdf file now the computer has transferred that request to the [00:37:18] operating system first now the operating system is going to dissect and understand what exactly [00:37:26] this request is all about but then it will understand oh okay our user wants to open a pdf [00:37:35] file so now which application i'm going to use to open this pdf file very valid question right [00:37:48] you double click pdf file opens up but pdf file is the data pdf file is nothing but data [00:37:59] but how is it going to open up it is going to open up using an application for example [00:38:05] Acrobat Reader. Operating system also need to know which application to be associated to open [00:38:19] this data. Our data is a PDF file and which application we are going to use Adobe Acrobat [00:38:27] Reader. Or you can use any other application to open your PDF files. [00:38:34] That application need to be known to the operating system. So now the operating system will collect [00:38:39] all the information okay user has requested to open a pdf file now which application to be used [00:38:46] we need to identify where this pdf file is stored within the hard disk how to retrieve that [00:38:55] then which application we need to associate for the retrieved data that is the pdf content [00:39:02] and then use that application and display so the entire interpretation of our request [00:39:08] is made by the operating system and operating system knows everything when i say knows everything [00:39:18] because it can identify what are all there in the system both in terms of hardware and as well as [00:39:28] software that's the beauty of operating system it can identify all the hardwares whatever hardware [00:39:39] it is present in your bare metal operating system will detect get to know about the capability [00:39:46] capacity of a particular component hardware component the cpu is one of them so now operating [00:39:54] system has identified the cpu so that means it also understands that cpu is the one which is going [00:40:03] to process my instructions our request has been converted as the instruction by the operating [00:40:10] system and then it will be given to the processor now processor depends on memory because it needs [00:40:17] temporary safe space right whatever operating system gives us a task to the processor cpu cannot [00:40:24] keep it itself because it does not have that much storing capacity there so it will look for the [00:40:31] memory which is a temporary storage memory is a temporary storage so it will store the information [00:40:39] basically the instruction what it has received from the operating system and then it will [00:40:46] continue to work so we said it is also dependent on storage for example operating system itself [00:40:59] where is it stored it is stored in the storage basically storage is hard disk [00:41:10] memory is temporary storage and hard disk is a permanent storage [00:41:14] Our applications are installed in our storage, that is hard disk, our documents, our photos, [00:41:22] our databases, our PDF files, everything is stored in the hard disk. [00:41:29] So in our computer, hard disk is the permanent storage and memory is the temporary storage [00:41:37] Wherein our CPU, the processor, uses both these type of storages for its operations. [00:41:50] Now, CPU also depends on... [00:41:59] Now, assume that your PDF file is not residing in the local hard disk of the system, [00:42:05] but it was saved in a pen drive. So now the file needs to be retrieved from the pen drive. [00:42:14] So it will look for all the USB drives and see, is there any pen drive? [00:42:20] Yes, it is. [00:42:23] And the user also has clicked the file from the pen drive only. [00:42:28] So now, how am I going to communicate to the pen drive? [00:42:33] It needs to have input-output and it depends on that. [00:42:38] It could be just not your pen drive. [00:42:41] It could be mouse. [00:42:42] It could be keyboard. [00:42:44] It could be an external display. [00:42:48] It could be drives, USB drives. [00:42:52] Or it could be even printer. [00:42:54] You just give a request. [00:42:58] That, very good. [00:43:00] I have seen this Word document. [00:43:02] Every content is good. [00:43:04] Now I want to take a printout. [00:43:07] Are you going to tell, okay, CPU, please go ahead, attach to the printer. [00:43:13] i'm giving you line by line the word document please give instruction to the printer to print [00:43:23] the word has option for us to mention print immediately the operating system comes in oh [00:43:32] okay there is a request from the user so now you can understand the role of the operating system [00:43:37] any request that goes from our end is first received by the operating system and then it [00:43:42] it is converted into an instruction [00:43:44] and then it is given to the processor. [00:43:50] So it not only depends on input-output system, [00:43:58] it is also depends on the bus or interconnect. [00:44:06] So the components need a communication mechanism. [00:44:10] What are all the components we are referring here? [00:44:13] We are referring to the components such as CPU, [00:44:16] memory, storage, input, output. [00:44:20] All these things needs to be able to communicate to each other. [00:44:28] So there is a connection made. [00:44:33] There is a connection made between these components [00:44:38] so that one can communicate to the other. [00:44:41] So simply put forward, [00:44:45] the CPU cannot simply shout across the motherboard [00:44:52] and expect every component to understand it. [00:44:58] That's not going to happen. [00:45:01] There are hardware interconnects [00:45:04] that carry data, information, and addresses. [00:45:16] So now, what do we understand from this? [00:45:21] A computer system has many components, and CPU is one of them. [00:45:34] CPU is dependent on all other components of the computer, [00:45:39] and each component has a role on its own to play, [00:45:47] and all these components are interconnected. [00:45:50] it. So application, operating system. Application is the interface that we communicate. So end [00:46:01] of the day, it is a chain of communication. As a user, you are communicating with the [00:46:07] application. Application communicates with operating system. Operating system is going [00:46:16] to communicate with cpu cpu is dependent on memory storage and ibo and to make this entire system [00:46:26] workable we have the interconnector we call it as bus basically it moves [00:46:35] data and control information okay perfectly fine this is the role of cpu [00:46:43] okay perfectly fine [00:46:46] but you said [00:46:48] CPU is [00:46:49] dependent on memory [00:46:51] so then what is memory [00:46:57] memory is where exactly the [00:47:02] programs [00:47:03] and the data that are [00:47:06] actively being [00:47:08] used [00:47:09] so now we have given an instruction to open [00:47:12] the PDF file [00:47:13] now the PDF file is [00:47:16] opened it is available on your output [00:47:18] device that is the screen you are able to see the content of the pdf file now where is this pdf file [00:47:29] residing at this point of time it is residing in the memory so what did processor did processor [00:47:38] took all this help got the content into the memory so that it is available to you [00:47:46] So, when we normally talk about computer memory, we are usually talking about R-A-M. [00:47:57] It is called as Random Access Memory. [00:48:02] Now, imagine we are working in an office. [00:48:11] In our office, most of us have a filing cabinet, a pedestal under the table, most of us. [00:48:22] or there could be some storage in the form of a dryer something will be there so if you are going [00:48:29] to store anything in your cabinet that is permanent and you'll be able to secure it also correct [00:48:36] you can have lock and key so you can secure it that is a permanent storage now what is memory [00:48:48] Memory is nothing but your working desk. [00:48:52] Suppose if you want to work on one of the files. [00:48:58] When I say file, I'm speaking about a physical file. [00:49:02] Then you're going to take the file out of the cabinet and keep it on the table. [00:49:07] Now the file is on the table. [00:49:10] That means the file is in the memory. [00:49:14] So once you're done with whatever you wanted to refer, [00:49:18] let us assume that it is your original house or the property document so you kept the file you [00:49:30] wanted to know some something from that document for example okay when did we register or when did [00:49:37] we buy this house and register it you will open the file you will see the registration date and [00:49:44] you will see within the document when did you pay the advance for that purchase and when did [00:49:49] you complete the transaction. Once you are done, you are going to close the file and [00:49:54] put it back into the file cabinet. So now it is being removed from the table and put [00:50:01] into the file cabinet. So your table is a temporary space. Can you keep everything there? [00:50:09] No. So to have your everything stored, that's where exactly the storage comes into the picture. [00:50:18] you retrieve from storage [00:50:21] keep it on the table [00:50:24] work on it [00:50:25] and keep it back to the storage [00:50:27] so now [00:50:29] since permanent [00:50:31] storage, the file cabinet [00:50:33] is it [00:50:36] fast to access [00:50:37] or if your file [00:50:40] is placed on your table [00:50:41] is it fast [00:50:43] to access [00:50:44] the faster to access is obviously [00:50:47] which is there on the table so that means the memory gives you a faster access so this actually [00:50:58] holds all actively used to programs not only programs but also data the storage is your [00:51:09] your filing cabinet. Memory is your tabletop. CPU is actually you. Because you are the one [00:51:20] who is processing this request. And probably the application may be your spouse. Or somebody [00:51:30] might have inquired your spouse. So your spouse is an application. Now spouse understands [00:51:38] how you are going to, so probably the instruction will come. [00:51:42] You don't know where, in which file cabinet, the document is stored. [00:51:45] Your spouse might tell, okay, it is there in the third cabinet. [00:51:52] Within that filing cabinet, you'll be able to find the blue-color file, [00:51:57] and that's where exactly this agreement copy is stored. [00:52:01] Open it up and see the date of registration and the date of the final payment. [00:52:10] So now, you are the CPU. [00:52:13] Now you will take the help of first the storage. [00:52:17] That is file cabinet. [00:52:19] Take out, you got the file, keep it on the table. [00:52:22] That is the memory. [00:52:24] So you are keeping on to the table. [00:52:26] So CPU also is going to place it on the memory. [00:52:29] That's all. [00:52:30] Processing is the job. [00:52:31] For you, it is the processing. [00:52:33] And giving the result back to your spouse. [00:52:37] Only two things. [00:52:39] But for that, you need a table space, you need a cabinet, you need to have access to the cabinet. [00:52:47] If it is locked in key, then you need to find the key to open it up before trying to look at whether it is there or not. [00:52:55] So here, application is your spouse. [00:53:00] You are the CPU. [00:53:02] you need [00:53:03] table space [00:53:06] because you are going to [00:53:08] retrieve the document from the [00:53:10] file cabinet and place it on the [00:53:12] table space [00:53:13] and then [00:53:15] you are going to [00:53:17] give the output that is you as the [00:53:20] CPU going to give [00:53:22] the output back to the application that is [00:53:24] your spouse [00:53:25] now the end user [00:53:27] looking at the application will be able to [00:53:32] get the data or information [00:53:33] what he or she was looking for. [00:53:36] So your spouse being an application [00:53:38] will be able to provide the data [00:53:39] to the end user. [00:53:41] Okay, we bought it on 23rd March 2010. [00:53:46] Somebody might have encoded for some reason. [00:53:49] So your spouse will give that data [00:53:51] back to the end user [00:53:52] who were asked for it. [00:53:54] That is how the whole system works. [00:53:57] So they're good. [00:53:59] CPU I understood. [00:54:00] Memory. [00:54:02] the purpose I understood, storage is the purpose I understood. [00:54:09] Now, the storage. [00:54:18] Now, the storage can be a file cabinet, [00:54:22] the storage can be an almirah, [00:54:26] the storage can be your bank locker, [00:54:31] the storage can be a storage unit of a carpet. [00:54:39] Assume that you got transferred from your organization [00:54:43] because you requested for a transfer to Pune [00:54:48] because Pune is your hometown. [00:54:51] Currently, you are in Gurgaon. [00:54:54] So you are transferred. [00:54:57] When you are transferred, [00:54:59] you have at your home so many furnitures, [00:55:04] articles, books, devices, gadgets, utilities, everything. [00:55:15] Now, all these things have to be moved to your home. [00:55:21] So now, first, you need to move out of your house. [00:55:26] Otherwise, your owner is going to say, I will extend your rent. [00:55:31] Otherwise, please vacate the space and give me the key, hand over the key. [00:55:35] Now, you will pack everything. [00:55:38] And probably, you will keep it in a storage facility. [00:55:43] because the scenario is [00:55:45] you have sent your family [00:55:46] because your children's school [00:55:48] have started [00:55:49] mid of June [00:55:50] and you are getting relieved [00:55:53] in mid of July [00:55:54] so now [00:55:57] you will pack everything [00:55:58] keep it in a storage unit [00:56:00] in Gurgam itself [00:56:01] and then you will continue [00:56:03] to go to office in Gurgam [00:56:06] then from the storage unit [00:56:09] where you have stored [00:56:10] you will find the transporter [00:56:13] who is going to take and sending it to the unit. [00:56:21] So that means within the storage also, [00:56:24] the requirement is of different type for a different purpose. [00:56:30] At home, it's a different type of storage for a different purpose. [00:56:35] Storage unit in Gurgaon, different type and different purpose. [00:56:39] the storage unit [00:56:41] which packers and movers are going [00:56:43] to take your [00:56:44] articles. [00:56:47] That's a different storage unit. [00:56:51] It is also [00:56:52] a different type, but purpose [00:56:54] is different. Now they deliver [00:56:57] it to your home at [00:56:58] then that storage [00:57:03] type is different. [00:57:06] Probably they will deliver all the articles [00:57:08] and place it in one of the rooms. [00:57:12] And if you have also opted [00:57:13] but for the service of opening all the critical articles, [00:57:16] something like fridge, washing machine, your LPG. [00:57:23] They'll open, they'll set it up, they'll give, [00:57:25] make it functional and they'll go. [00:57:28] So now the fridge from your Gurgaon apartment [00:57:31] has moved to Pune apartment in different storage units. [00:57:38] Like that, we have different storage units in computer also. [00:57:42] Now, it can be hard disk, within hard disk, we also have SSDs, or it could be a NVIDIA [00:57:59] main storage, now NVIDIA has come up with different units of elements, now if you look [00:58:07] at CPU, now NVIDIA which has the requirement of a higher processing, they can have the [00:58:18] came up with their own graphics unit. [00:58:25] Generally, the CPU also has two different. [00:58:28] GPU is part of the CPU. [00:58:29] It will actually process the graphical data. [00:58:35] But since the requirement of NVIDIA is huge, [00:58:40] they have their own graphics card, [00:58:43] which we can use within our computer itself. [00:58:47] Along with the CPU, [00:58:49] your nvidia gpu also can function similarly here we can have other storage [00:59:01] could be a pen drive that you are attaching or you are connected over the internet [00:59:08] now you have a storage in cloud which we call it as buckets [00:59:15] buckets will allow us to store our files and folders [00:59:20] It's a very simple terminology all the cloud service providers are using. [00:59:25] So instead of me having a pen drive where I have to carry this everywhere, [00:59:30] and there might be security concerns, [00:59:35] my corporate laptop doesn't allow me to connect my pen drive into my USB drive. [00:59:41] So I can use a OneDrive provided by the company itself. [00:59:48] So wherever I go, I can access that. [00:59:50] It is centrally located. [00:59:54] So if I switch the computer off, [01:00:00] I asked it to open a document. [01:00:02] It showed me the document. [01:00:05] I modified the document. [01:00:07] I saved the document. [01:00:09] So opening the document, [01:00:11] modifying the document, [01:00:12] saving the document, [01:00:13] all the activity as a user, [01:00:16] what you have done, [01:00:17] has been understood by the operating system [01:00:20] and then convert those requests as instruction [01:00:23] and given it to the CPU. [01:00:25] CPU uses memory, it uses storage. [01:00:29] But now save instruction also you have given [01:00:32] and you have closed to the document. [01:00:34] Closed is also an instruction. [01:00:36] Anything that we ask for is an instruction to the CPU. [01:00:42] And who gives that instruction? [01:00:43] The operating system gives. [01:00:46] Now you are switching off your laptop. [01:00:50] You are starting the laptop probably after a couple of hours. [01:00:55] Will you get that Word document again? [01:00:57] Yes, you will get. [01:00:59] Because it has been stored in the storage, not in the memory. [01:01:04] Memory is only for active, but it cannot be permanent. [01:01:10] Memory is faster. [01:01:13] It is smaller in terms of the capacity. [01:01:16] It is faster. [01:01:18] It is smaller in capacity. [01:01:21] And it doesn't store things permanently. [01:01:25] On the contrary, storage is huge by size, [01:01:32] comparatively slower when compared to memory. [01:01:37] And there are different types. [01:01:41] You can have a local hard disk. [01:01:44] You can have a pen drive. [01:01:45] You can have a bucket in the cloud. [01:01:48] Or it could be that hard disk of another laptop. [01:01:51] or it could be a hard disk of the server [01:01:54] to which you are connecting. [01:01:56] For example, email. [01:01:59] Every one of us has email. [01:02:02] So we are using an application called Outlook Express. [01:02:06] Let us assume so. [01:02:08] So the application is Outlook. [01:02:12] Now this Outlook, [01:02:14] we are asking it to connect to the server. [01:02:17] What does it mean? [01:02:18] That means my data is somewhere else in the network. [01:02:23] So the Outlook should look for my email, not in my laptop, but over a server in the network. [01:02:32] You give authentication, it connects to the email server. [01:02:36] And from there, it starts fetching your emails. [01:02:40] It differentiates. [01:02:40] So application differentiates you read, unread emails. [01:02:44] But how is that able to get it? [01:02:46] it is able to get it through operating system. [01:02:49] The instruction has gone to CPU [01:02:51] and the CPU has retrieved it from the storage [01:02:54] and some of them are available in the memory. [01:02:59] Why some of them, Sudhar? [01:03:01] Anyhow, application has opened up my entire email box. [01:03:05] Yeah. [01:03:06] But not all the emails are active [01:03:09] as far as computer is concerned. [01:03:12] Computer, whatever emails it is showing in your page, [01:03:16] Suppose if it is 20 emails are displayed in your Outlook, [01:03:21] only those 20 emails will be in the memory. [01:03:25] Suppose if you scroll down in your Outlook, [01:03:28] then what will happen is whatever currently which is there in the memory, [01:03:33] but not on your Outlook application, [01:03:36] that will be removed from the memory. [01:03:39] There could be another two emails that might have come in your application. [01:03:43] those two emails will be retrieved from the storage [01:03:46] and it will be moved to the memory. [01:03:50] So every time we move the mouse, [01:03:55] that has been understood by the operating system, [01:03:57] instruction sent to the CPU. [01:04:02] So now you switch it off, you switch it on, [01:04:07] till you are able to get the document [01:04:08] because it is stored in a permanent storage [01:04:12] and that storage is also persistent. [01:04:16] Memory is not a persistent disk. [01:04:19] Memory is a temporary disk. [01:04:22] But hard disk is a permanent disk. [01:04:24] Your bucket in the cloud is a permanent storage. [01:04:30] It need not be only this Word document. [01:04:33] It could be your videos. [01:04:34] It could be your database files. [01:04:37] Or it could be even your configuration files [01:04:39] of your application. [01:04:41] Anything in the form of files, folders, which we call it [01:04:44] as content, or data, is stored in the storage. [01:04:50] Now what is the difference between the storage and memory? [01:04:54] We discussed in length, but memory is used for only active and storage is persistent. [01:05:05] Typically, memory is volatile. [01:05:08] That means it can disappear, but storage is non-volatile. [01:05:15] Memory is faster because its capacity is small. [01:05:20] It doesn't have the accountability to store the data. [01:05:24] Its accountability is only to serve the data. [01:05:28] It is something like storage is your kitchen [01:05:30] where you are preparing the dish, [01:05:32] keeping it on a serving table, [01:05:35] and that serving table is the memory. [01:05:40] Once the dish is over on the table, [01:05:42] then you go and get from the kitchen, [01:05:44] that is storage, [01:05:45] and place it in the memory, [01:05:46] that is your dining table. [01:05:47] so memory is smaller capacity [01:05:50] whatever you have cooked for 25 people [01:05:53] table may not be [01:05:54] able to accommodate it [01:05:56] so you keep in different [01:05:58] dishes [01:05:59] and start serving it [01:06:02] only when it is required [01:06:04] so memory is smaller capacity [01:06:06] storage is of [01:06:07] largely large capacity [01:06:10] and CPU works [01:06:12] with data [01:06:14] that is made available in the memory [01:06:16] but storage data is stored permanently that is what we say persistent data so your desk is memory [01:06:32] your filing cabinet is storage you are the cpu and your spouse is the application [01:06:40] so you execute instructions coming from the operating system because your spouse instruction [01:06:48] comes via operating system to you. [01:06:51] You execute it. [01:06:54] You use storage to retrieve. [01:06:56] That is the file cabinet. [01:06:58] You keep on your desk. [01:07:00] That's the memory. [01:07:01] File cabinet storage. [01:07:04] Desk memory. [01:07:05] Your cell CPU. [01:07:07] The instruction given by your spouse [01:07:09] is basically going through the operating system. [01:07:12] And when you get back to your application [01:07:15] about the date of registration, [01:07:18] then the application is giving it to the end user. [01:07:21] That is your spouse informing somebody who asked for it. [01:07:25] Okay, yes, 23rd March 2010. [01:07:30] Perfect. [01:07:31] Now, what is the relationship between these three? [01:07:37] It is very, very important for us to understand. [01:07:40] But before understanding that, [01:07:44] I would like to pass here and stop sharing. [01:07:47] and check if there are any queries questions let me first check in the chat so [01:07:55] jump to the latest still there are people who are joining push okay fine link for [01:08:08] okay improve your attention span guys okay fine how a boring teaching style okay great okay [01:08:30] perfectly fine okay just have taken okay perfect so fair enough I'll it will get when we move on to [01:08:57] the next slide we'll be able to do but I just test each component within the same slide okay [01:09:06] perfectly fine [01:09:07] I'll do that [01:09:10] so [01:09:10] Shukipal [01:09:13] I'm enabling [01:09:15] your mic [01:09:15] Shukipal [01:09:44] if you are [01:09:46] talking then [01:09:46] probably you are [01:09:47] talking on [01:09:47] mute I'm not [01:09:49] able to hear [01:09:49] you [01:09:49] okay cool [01:09:53] Saurav [01:09:53] I'm enabling [01:09:55] your mic [01:09:56] good noon [01:09:59] sir [01:09:59] am I audible [01:10:00] yeah you [01:10:02] are [01:10:02] okay [01:10:03] sir there's [01:10:03] one basic [01:10:04] question that I [01:10:05] want to ask [01:10:05] as you have [01:10:06] described in the [01:10:07] image it was [01:10:08] having like cpu memory storage and other components as well over there so it is just like [01:10:15] as we know output input output devices like keyboard mouse and monitors these are like [01:10:21] external so what can we consider the core thing that should be present to make up [01:10:26] everything for example if you don't have an input output device so how are you going to make a [01:10:34] request as a user okay and sir uh there's one thing that you told about the buses like uh if [01:10:43] we want to transfer it from uh like uh storage to memory so and the memory to cpu so these are all [01:10:52] be done by buses so is this something that buses consist like uh is it a single thing or there [01:10:59] would be like from memory [01:11:01] to like storage, there [01:11:03] would be one something buses and then [01:11:05] from memory to CPU, there would be different [01:11:07] buses. That is what I'm [01:11:09] with. Sure. I understand [01:11:11] Saurav, where you are coming from. [01:11:13] Just give me 10 minutes, you will get to know this. [01:11:15] We are getting there actually. We have [01:11:17] not touched the bus yet. So once [01:11:19] we discuss the bus, definitely [01:11:21] you will come to know. Okay. [01:11:22] Okay. Thank you. [01:11:25] Kamran, [01:11:27] allowing your mic. [01:11:31] Yeah. Good afternoon, sir. Can you hear me? [01:11:35] Yes, please. [01:11:36] Yeah. Sir, I just have a simple question. [01:11:39] What makes the storage to work slower than memory? [01:11:43] That's it. [01:11:45] Okay. [01:11:46] See, let me give you this example. [01:11:50] So there is a train that is traveling between Gurgaon and Delhi. [01:11:57] and one is a passenger train [01:12:00] and another one is [01:12:02] a goods train [01:12:04] so do you [01:12:06] think a goods train will be able to [01:12:08] travel as fast as the passenger train [01:12:10] we know that it can't [01:12:12] and [01:12:14] suppose if there is a Vande Bharat [01:12:16] running between these two [01:12:17] Vande Bharat is going to be the fastest [01:12:20] but why [01:12:21] because Vande Bharat only [01:12:24] objective is to [01:12:26] serve the passengers [01:12:28] safely from one [01:12:30] destination to another. [01:12:32] And [01:12:32] it doesn't have to store [01:12:36] anything. [01:12:38] But in case, it need not have to stop [01:12:40] everywhere. It will have very [01:12:42] limited stops. So it has [01:12:44] been enabled to be fast. [01:12:47] Okay. [01:12:48] Second is the passenger train. [01:12:50] The objective of the passenger train is [01:12:51] it is supposed to serve the passengers [01:12:54] convenience. Maybe there [01:12:56] is a smaller station, in that station also it will stop. That does not mean the passenger [01:13:03] train has a lower capacity or a capability to run fast. The objective is that not running [01:13:11] fast but to serve almost everyone on that route. Now the third one is the goods. The [01:13:19] goods train, the first mandate it has been given is, it is going to carry tons of loads. [01:13:30] That is the objective. Move tons of loads from one destination to another safely. Nothing should [01:13:39] happen to the goods. So their speed is not the driving factor. So now your hard disk is something [01:13:46] like a good strain, wherein the objective is to store enormous amount of data, and if [01:13:53] you want to fetch a file, you will be fetching it from enormous number of files that it has [01:14:01] saved. [01:14:02] Objective is to store the data persistently, so speed can be compromised, like your good [01:14:11] strain. [01:14:12] But it will not stop anywhere. [01:14:15] It will start from source, go to destination only. [01:14:19] But passenger train is something like you are in between. [01:14:26] There is a component between storage and memory. [01:14:31] I'll come to that later when we speak about it in detail. [01:14:34] But your memory is something like Vande Bharat. [01:14:36] Objective itself is fast. [01:14:38] Suppose as a user, if you are using the word file, [01:14:42] now the word file has to load from the disk to your screen. [01:14:45] every time that you type [01:14:47] something then it will be slow [01:14:49] because objective of hard disk [01:14:51] is persistent storage [01:14:52] but the user expectation is I want [01:14:55] the refresh very fast the moment [01:14:57] I type A it should be there on [01:14:59] my screen how it is possible [01:15:01] it is made possible because [01:15:03] your file is moved into the [01:15:04] memory which is the Vande Bharat [01:15:06] objective is to give the [01:15:09] refresh to the user fast [01:15:10] that's well [01:15:12] that is the reason it is fast and slow [01:15:14] it is by design [01:15:17] are we good [01:15:19] yeah thank you sir [01:15:21] okay great [01:15:22] so anything else from [01:15:24] any one of us [01:15:26] Shobit [01:15:35] just [01:15:36] can you please raise your hand [01:15:38] I would like to understand [01:15:40] what do you mean by highlighting every point [01:15:43] that is the case [01:15:46] I would like to understand [01:15:47] so that it is benefiting everybody [01:15:50] Shobit [01:15:59] Aresh Rawal, I have allowed your mic. [01:16:12] Aresh, if you're talking temporarily, I'm not able to hear Aresh. [01:16:22] Okay. [01:16:24] So let me come back to this question. [01:16:29] Okay. [01:16:35] Fair enough. [01:16:38] How is cloud relevant to the storage? [01:16:42] So instead of you having a hard disk in your laptop, [01:16:44] you having the hard disk in a data center [01:16:49] that is maintained by AWS. [01:16:53] So then we refer it as a bucket that I have placed [01:16:57] in AWS data center, [01:17:00] which is exclusively for my storage. [01:17:03] I don't have to buy that bucket. [01:17:06] All I will do is I need a bucket to store my data. [01:17:11] Amazon will give you. [01:17:12] So, what Amazon gives as a bucket is actually not a bucket, it is also a storage. [01:17:19] Maybe in the form of hard disk, maybe in the form of SSDs. [01:17:25] It could be any of these two, but it is end-of-the-day storage only, or it could be a LUN from a NAS. [01:17:34] It could be anything, but what you are getting is only storage from AWS, which you have not [01:17:39] bought, but rented. [01:17:42] Okay, cool, fair enough so what we will do is before we go ahead let us take a [01:18:09] quick five minute of bio break and once we are back what we are going to [01:18:16] understand is how computers are layered. Because without layering, we will not be able to achieve [01:18:27] abstraction. What is abstraction? Abstraction means nothing but hiding from one layer to another [01:18:37] layer. That is abstraction. So why do we require abstraction? We need to reduce the complexity. [01:18:44] you giving a request to open a word file [01:18:47] and [01:18:48] if everything is [01:18:52] going to happen by one component [01:18:54] then that's going [01:18:56] to be too much of a time so split off work [01:18:58] so many components [01:19:00] between the components [01:19:02] they have their own responsibilities [01:19:04] and [01:19:06] according to their responsibilities [01:19:07] they have the right [01:19:10] to abstract [01:19:11] and that's what we are going to understand next [01:19:14] once we are back from the break [01:19:16] and the break duration is 5 minutes [01:19:19] because we will have another break [01:19:22] before the closure of the day [01:19:24] and that would be another 5 minutes [01:19:26] so overall 10 minutes break [01:19:27] in a 3 hour session [01:19:29] that's how I normally plan [01:19:32] if there is anything that you wanted to suggest [01:19:35] about the break [01:19:36] yes you can [01:19:36] if it is agreeable to all of us [01:19:40] at least most of us [01:19:41] we can go ahead with that [01:19:42] so yeah we'll do that and i am passing the recording for now yeah that's a good [01:19:50] thing thank you so much for reminding i was about to do but [01:19:53] anyway choice thank you for reminding me but only thing is please remind me when i come back [01:20:00] people oh i cannot stop i can only pause i can only stop i don't have an option for [01:20:12] pausing [01:20:14] okay [01:20:14] that's fine [01:20:16] I will be suggesting you reference books [01:20:22] I'll also tell you how to [01:20:24] look at the videos once I [01:20:26] come back [01:20:27] okay sure instead of 5 minutes let us take a 10 minute [01:20:30] break [01:20:30] and then we'll convene [01:20:33] so it is going to be 3.22 [01:20:35] please come back by 3.32 [01:20:38] thank you so much [01:20:39] okay guys hope you are back from [01:30:43] the break and hope I'm audible as well and clear as well. I have shared my screen. It says layered [01:30:53] machine. Is it visible? Can one of you confirm please? Okay, great. Thank you so much. [01:31:07] so now we have seen [01:31:13] computer is made of so many parts [01:31:15] of which seven is what we have focused [01:31:19] and those are all the major [01:31:21] everything comes under it [01:31:23] so I could see somebody was asking about cache [01:31:27] if memory is my table [01:31:30] then what is cache [01:31:31] cache is something that [01:31:33] if you have seen in your offices [01:31:36] the olden days there used to be a in table out table out tab completed job will be put into that [01:31:44] tab so that is your cache someone who comes in will be able to pick it up [01:31:50] because it's easy reach for the people who are going to pick up that file same way [01:31:55] it is an easy reach for your applications to get the data from the cache cache is part of your [01:32:02] memory. We will discuss that in detail. [01:32:06] Just wanted to clarify before we move ahead. [01:32:09] Now, it is a layered mission. [01:32:11] What do we mean by layered mission? [01:32:14] The OS does not translate [01:32:17] every application directly into an instruction. [01:32:23] Not every application operation, [01:32:26] it directly changes into an instruction, [01:32:29] but it does in a simple sequential pipeline. [01:32:34] So the OS or it could be your language compilers or libraries or firmware or hardware internet [01:32:43] across these boundaries. It could be anything. So the application intent whatever the application [01:32:51] is giving its intent goes to the OS services then it converts into an instruction set architecture [01:33:00] and these instructions goes to the micro-architecture. [01:33:04] And this micro-architecture only goes to the digital hardware. [01:33:11] It's physical digital hardware implementation. [01:33:15] This is what is the layers, the flow. [01:33:18] So basically, if your application is asking to open up a Word document, [01:33:22] it goes to the operating system. [01:33:23] Operating system converts that as a set of instructions. [01:33:28] And then every set of instruction is converted into a micro-architecture. [01:33:33] And that micro-architecture is basically used by the pipelines, execution units, cache, memory, everything. [01:33:45] And once it does, the job is not done by the memory. [01:33:49] It is actually done by the hardware which is present into the system. [01:33:55] So how your request of open a Word document reaches the actual hardware? [01:34:01] So here you need to parallelize two things. [01:34:04] One is the flow of your request. [01:34:07] Second is the component that performs. [01:34:10] Both has to go hand in hand. [01:34:12] Application you are opening. [01:34:14] So the application comes from the hardware. [01:34:16] That is the disk opens up. [01:34:19] Then you open up a document. [01:34:22] Then that is also coming from the hard disk only. [01:34:25] So it has to reach the hard disk. [01:34:27] How it reaches the hard disk? [01:34:29] In this sequence of manner. [01:34:32] So now, what does this application give us? [01:34:39] Application is trying to solve our problem. [01:34:43] What is our problem? [01:34:44] We have stored something in the hard disk we wanted to retrieve and see. [01:34:50] Then what is the operating system helps us? [01:34:53] safely and efficiently I can use system resources that is what it manages hardware resources it [01:35:02] provides common services for the application and it also offers abstraction so now what operating [01:35:10] system does will not be known to the application microsoft word is your application microsoft [01:35:15] windows is your operating system what microsoft windows performs will be totally hidden from the [01:35:23] microsoft word microsoft word will say okay open this document operating system will take it up [01:35:31] do the job for the application but it will not tell how it performed that's what we call it as [01:35:38] abstraction then what is this isa instruction set architecture basically this provides [01:35:47] what operation does the processor promise to support because every processor will have its [01:35:57] way of working now whatever operating system is converting as an instruction set should be [01:36:04] understandable by the memory sorry understandable by the processor so this architecture the [01:36:10] instruction set that is being created by the operating system will follow this architecture [01:36:16] What is this architecture? The architecture in which the processor was built. [01:36:22] So the operating system will identify what processor you have, and based on that, [01:36:27] it will convert the instruction set in that architecture so that the processor can understand. [01:36:32] Now, what is this microarchitecture? [01:36:35] Now, the processor has received the instruction set according to its architecture. [01:36:41] Now, how is it going to implement those operations effectively? [01:36:46] So that means microarchitecture is a subset of the architecture. [01:36:50] The answer is yes. [01:36:52] So the microarchitecture is based on the architecture. [01:36:57] Now this microarchitecture, what it is going to do is [01:37:00] the instruction set will be split by the processor [01:37:05] and given it to different subsets of the processor. [01:37:09] And one of the subsets is cache. [01:37:12] So cache is part of the processor. [01:37:14] So now, whatever needs to be given to cache, only that much will be given to cache by the [01:37:23] processor. [01:37:24] So the microarchitecture is going to help CPU to implement those instruction set efficiently. [01:37:34] Okay, perfectly fine. [01:37:38] Now what is digital hardware? [01:37:41] How are those operations physically realized? [01:37:44] your file is in the hard disk now operating system has told it is given the instruction [01:37:53] to the processor processor knows that it is in the hard disk from the instruction [01:38:00] and how is it going to retrieve from the hard disk so hard disk is also one of the hardware [01:38:08] inside your computer so digital hardware is the last layer which is actually going to physically [01:38:16] perform the operations that is retrieving your file maybe it is stored in the address [01:38:23] thousand one to twenty five thousand one i'm just giving an example so starting from thousand one [01:38:31] address of the hard disk until 25001 is the content of the document that needs to be opened [01:38:38] where is it coming from it is coming from the instruction set so there is a communication [01:38:44] between operating system and the hard disk separately that we discuss later so now the [01:38:51] layer one is application layer two is operating system layer three is instruction set architecture [01:38:57] fourth is micro architecture [01:39:00] and this micro architecture is going to give instructions to [01:39:04] specific hardware [01:39:06] even memory isn't hardware [01:39:10] it is made out of metal [01:39:11] processor is also a hardware [01:39:14] it is also made out of metal [01:39:16] hard disk is also a hardware [01:39:19] it is also made out of metal [01:39:20] so how all these things are connected [01:39:24] is that interconnect bus. [01:39:28] So, suppose you have a switch in the wall [01:39:32] and your light is on the ceiling. [01:39:35] The wire that is connecting between the switch and the light [01:39:38] is the interconnect. [01:39:41] Like that, we have interconnect between each and every [01:39:44] metallic resource we have in the system. [01:39:49] So, this is where exactly the business problems are solved. [01:39:53] I want to calculate the sum and product of 5 and 10. [01:39:56] It's solved by the application, [01:39:57] but is it going to solve it on its own? [01:40:00] No. [01:40:01] Say, I want to do this solution. [01:40:04] Go to operating system. [01:40:05] Operating system will give the instruction set to processor. [01:40:09] Processor will split that instruction set [01:40:11] according to the microarchitecture of its sub-elements [01:40:14] and give it to those elements appropriately [01:40:16] and get the job done. [01:40:18] And those elements will get it with their respective hardware. [01:40:22] At the end of the day, the job is done by the hardware, 10 plus 5 is calculated actually [01:40:29] by the hardware and given it back to the application and the application displays on your screen. [01:40:36] The sum is 15 and the product is 50. [01:40:38] This is how it works. [01:40:42] And this application layer could be your simple browser or it could be Word, it could be VS [01:40:48] code where you are writing codes. [01:40:51] It could be a Netflix client where you are watching a movie. [01:40:54] Again, the movie that you are watching is nothing but data. [01:40:58] It is getting converted at different layers and getting displayed by your application, [01:41:04] which is your Netflix client. [01:41:06] It could be a Python application or it could be an AIML application or it could be a Kubernetes [01:41:13] control plane. [01:41:16] You logged into the Kubernetes control plane and you are giving kubectl command, so you [01:41:22] want to do something and that something is at the application layer which is kubernetes now the [01:41:28] kubernetes will give it to the operating system if it is running linux then linux will take all [01:41:33] those command make the instruction set according to the architecture of the processor and give it [01:41:39] to the processor now processor receives the instruction set in its own architecture divides [01:41:45] so basically you might have asked i want to bring node 276 down how is that cube kettle [01:41:56] get nodes how many nodes i have that's what it means how is it going to get that information [01:42:02] where is this information stored it is stored in a database where is database stored it is stored [01:42:07] in a storage which is the storage it's a sand device so it we have to retrieve it from sand [01:42:14] device to just give the list of nodes that are actively [01:42:18] running in the Kubernetes cluster. [01:42:21] So this needs to be communicated in a sequence. [01:42:27] And there is a layer for every activity. [01:42:31] These are all the five layers. [01:42:36] So this layered architecture, if you [01:42:41] want to split it much more, application [01:42:46] is the highest level. [01:42:48] It is representing the software programs users interact with directly, [01:42:53] that is users like you. [01:42:55] Could be web browser, word processors, games, movies, [01:43:00] just a photograph, anything. [01:43:04] It abstracts away all the underlying system complexities. [01:43:11] As a user, we will get to know any of these? [01:43:13] No, we don't. [01:43:15] That means this is abstracting everything under it. [01:43:20] So what is the next level? [01:43:24] The next level is the language [01:43:28] in which you have written the application. [01:43:32] It could be Python, it could be Java, [01:43:33] it could be C++, or it could be just a JavaScript. [01:43:38] Everything fall into this category, [01:43:40] problem-oriented program language. [01:43:43] They are designed to be human-readable [01:43:46] and abstract away the intricate details. [01:43:50] Will user be able to see this layer? [01:43:53] No, user will see only the application layer. [01:43:56] Programmers will see this layer. [01:43:59] As a programmer, you are writing the code [01:44:00] and using the VS code. [01:44:01] VS code is your application. [01:44:04] As a programmer, not your application [01:44:06] is the application, what you have written. [01:44:09] That is for user. [01:44:10] So this is for you as a developer. [01:44:13] So this layer significantly boosts productivity [01:44:17] code maintainability for a developer okay you are writing in english because you are not writing in [01:44:30] the language that computer understands so if you are writing in english for example if else statement [01:44:40] or a for loop then how that is going to be interpreted by the below for that we have [01:44:48] assembly language this assembly language you can alternatively say symbolic machine code [01:44:56] assembly language is nothing but symbolic machine code it provides a thin layer of abstraction [01:45:03] what layer of abstraction it provides it provides a layer of abstraction between [01:45:07] machine code and your english language for example you may be in your windows prompt [01:45:15] and you may say copy this file to this destination. [01:45:20] How is that copy command is going to be interpreted? [01:45:22] It is English. [01:45:24] Now from the operating system level, [01:45:26] it is going to the assembly language [01:45:27] and assembly language will give it to machine code. [01:45:30] What assembly language will do? [01:45:31] It does a conversion job. [01:45:34] The way machine can understand the code. [01:45:38] And this machine code is the lowest level of programming language. [01:45:40] which, machine code is the lowest level of programming language of three layers. [01:45:52] It consists of only zeros and one, nothing else, which one, the machine code. [01:45:57] And that is computer's processor. [01:46:01] This is your computer's processor. [01:46:04] So this is the application, operating system, and the processor, and the processor. [01:46:16] So this is all your, these three is your language, [01:46:22] programming language. [01:46:24] Now it is converted into the machine code, [01:46:28] but this is just an instruction [01:46:30] in the form of zeros and ones. [01:46:34] But this is when exactly it is going to transfer [01:46:37] this instruction as a set, instruction set to the processor. [01:46:43] So, this will be done according to the architecture of the processor. [01:46:48] There are different architectures, you can say Intel, you can say AMD, ARM, RISC. [01:46:57] What is that? [01:46:58] It is basically the way the processors are made. [01:47:03] Apple's architecture is 686, ARM. AMD also uses the same. But mainframe is different architecture. The processor that is used in the mainframe is made with a different architecture. [01:47:23] the processors that are [01:47:26] used in your Apple laptops [01:47:28] or Macintosh servers [01:47:30] has a different [01:47:32] architecture. So that means this [01:47:34] machine code should understand what [01:47:36] architecture the processor is made [01:47:38] and accordingly it will. [01:47:42] So when you say [01:47:45] x86, basically it originates [01:47:47] from the naming convention of Intel's [01:47:50] most successful [01:47:51] line of processors. [01:47:54] So 586 [01:47:55] is the most successful. [01:47:58] We call it as Pentium. [01:48:00] That's where exactly the X86 comes from. [01:48:02] It starts with a 086 microprocessor. [01:48:07] Okay, cool. [01:48:10] Now, this is the microarchitecture. [01:48:16] ISC, giving it to different components [01:48:19] within the processor is a one. [01:48:21] Now, this microarchitecture [01:48:23] has a layer below called registrars and logic gates. [01:48:31] Basically, it is composed of a fundamental digital circuit. [01:48:37] Below microarchive, until here, it is the instruction. [01:48:42] Below this, it is the actual circuit. [01:48:47] It could be circuits like AND, R, NOT, NAND, NOR. [01:48:56] car gates, could be flip-flops. There are so many logic gates. The digital circuits are available [01:49:05] and logic gates, what do they do? They perform basic Boolean operations on binary inputs. [01:49:13] Beyond this, it is binary input. So logic gates will work on these binary input [01:49:21] to produce a single binary output. [01:49:24] This will come as multiple inputs. [01:49:27] LogicGate is going to work on it and create a single output. [01:49:33] And on the other hand, [01:49:35] registers are small, high-speed storage locations within CPU. [01:49:43] Sundar, now you are confusing us. [01:49:46] You said storage is outside of CPU. [01:49:49] Yeah, it is right. [01:49:51] But within CPU, when it is going to do so much of processing, [01:49:56] obviously it requires some temporary storage. [01:50:00] If it has to take the help of memory, it is outside of CPU. [01:50:03] If I give some storage within the CPU, then at least the processing will be fast. [01:50:09] End of the day, what we expect today is our processors need to be as fast as possible. [01:50:15] So, there are some high-speed, very tiny storage locations within the CPU, and those are all registers. [01:50:29] And it will be used for flip-flop. [01:50:32] That means it will hold the data for part of a millisecond. [01:50:39] It won't be beyond that. [01:50:41] Temporarily, my both hands are full. [01:50:45] If I want to take a third object, I'll have to keep the second object, [01:50:48] take the third object and then second the third object [01:50:51] and then hold all the three objects in my hand. [01:50:55] For that, I need a storage. [01:50:57] I don't need a desk. [01:50:59] Probably, if you look at the magicians, [01:51:01] they will have one stick in their hand. [01:51:05] Actually, it is a sort of a storage within the CPU. [01:51:08] They take the help of balancing with that stick. [01:51:11] Somebody who knows a little bit about magicians, they will understand, they balance with that. [01:51:18] It is sort of a storage inside the CPU. [01:51:21] But can it store anything for more than a millisecond? No, it can't. [01:51:26] Because by the time another data will ask for that space, we should not lose. [01:51:32] Now, below this layer, we will have transistors. [01:51:38] Since it is a processor, it is a transistor. [01:51:43] So the logic gate and register circuits are composed of billions of tiny electric switches [01:51:51] called transistors, because at the end of the day, it's all about 0 or 1, either on [01:51:56] or off. [01:51:57] That's it. [01:51:58] So transistors are semiconductor devices that can amplify or switch electrical signals. [01:52:05] Now you see, I gave application, the request. [01:52:12] Now it got converted at this level into signals, so that means end of the day our job is getting [01:52:19] done with signals within the computer. [01:52:22] They don't understand English, they don't understand Hindi, they don't understand French, [01:52:26] German, nothing. [01:52:30] That is for us, end of the day computer understands only two signals, one is on and another one [01:52:36] is off, which [01:52:37] transistors helps us to [01:52:41] perform. [01:52:43] But actually underlining the [01:52:45] transistor, if you look at it, [01:52:47] it is physics, [01:52:53] electronics, electrical. [01:52:56] Exactly that [01:52:57] is what is inside your computer. [01:53:01] So now, our [01:53:04] chalo [01:53:06] has become [01:53:09] on and off. [01:53:13] All I said is chalo. [01:53:15] That became on and off. [01:53:17] To become that on and off, it goes through this journey. [01:53:21] To go through this journey, we need so many components. [01:53:26] We don't want everyone to know what they are doing. [01:53:30] That's where exactly it is split into layers. [01:53:33] Why are we splitting this into layers? [01:53:35] Because we don't want another layer to know. [01:53:39] When I say another layer, it is about the above layer. [01:53:43] Programming language is going to hide everything else from the application. [01:53:47] Assembly language is going to hide everything below assembly language to the programming language, and so on. [01:53:55] So in this layers of abstraction, if you look at the software and hardware, the division is in between. [01:54:03] Because the instruction set architecture, one part of it is software and another part of it is hardware. [01:54:15] That's why the division of abstraction layer in terms of hardware and software is bicefting the instruction set architecture. [01:54:25] On the other hand, if you look at the complexity, at the physics level it is more complex. [01:54:34] You will understand that in another five minutes. [01:54:38] And for us it is low complex. [01:54:41] Rather I would say no complexity. [01:54:43] because we are able to speak [01:54:45] the way we want [01:54:46] if you want to even communicate with Hindi [01:54:49] you can communicate [01:54:51] with Hindi with the system [01:54:53] use Gemini on your browser [01:54:56] you have an option of audio [01:54:59] you click the audio, you speak in Hindi [01:55:01] it will interpret [01:55:03] that is for us [01:55:04] but end of the day, whether you say it in English [01:55:07] whether you say it in Hindi [01:55:08] it understands only by signals [01:55:11] and [01:55:12] to convert from [01:55:14] language to signal [01:55:15] it goes through the entire [01:55:17] architecture [01:55:18] and it has been built [01:55:20] over the years [01:55:23] it's been built over the years [01:55:25] initially we never had [01:55:27] beyond this [01:55:29] we were operating the entire [01:55:31] computer with the machine code [01:55:33] interface [01:55:34] like punching if you have heard of it [01:55:38] there is a [01:55:40] youtube video [01:55:40] and I'll provide all those links [01:55:43] as we move on those videos are very important for us to understand how the computer has evolved [01:55:51] especially for the non-tech you will be able to understand very clearly and i will provide all [01:55:56] those links as part of the pdf and i will upload it into the portal you can download and you can [01:56:06] view it especially for the non-tech it will help because i will not be afforded to go this much [01:56:14] slow for more than two sessions because i also need to catch up with the syllabus i also need [01:56:22] to make sure that you understand what is there at the syllabus so for all of your benefit i'm just [01:56:28] going slow in spite of getting the feedback that is slow hope you will leverage it okay great [01:56:38] Now we understood earlier the components. [01:56:45] Now we understood the layers. [01:56:47] These two are parallel. [01:56:49] This is not independent of this. [01:56:52] That's why I maintained this layer, which is of this layer. [01:56:57] And I'm connecting to abstraction. [01:57:00] Now what we are going to see is we are going to see the actual. [01:57:05] I brought this slide only because for you guys in non-tech, [01:57:10] please pay your attention for next five minutes. [01:57:18] This is one half and this is another half. [01:57:22] This is software, this is hardware. [01:57:25] So application works at the software layer. [01:57:28] Keep this in mind, the software hardware, [01:57:31] bifurcation in the layer of abstraction. [01:57:34] And then you look at this. [01:57:36] Application, you will see something like this. [01:57:38] if it is a windows operating system operating system if it is a windows 11 application you can [01:57:46] click browser you can click vs code you can click anything out of whatever you have and then that [01:57:52] will open up so the request comes from here from the application then it goes to the operating [01:57:58] system which is your windows 11 and what is it manages the resources and provides abstraction [01:58:02] Only two things. [01:58:04] It manages all these resources, [01:58:07] and it also provides abstraction [01:58:09] and create an instruction set as well. [01:58:13] So now, when you're speaking about this, [01:58:20] you are actually converting the instruction set, [01:58:26] which is basically in the binary. [01:58:28] You can see where binary comes in. [01:58:30] As soon as your instruction set is ready [01:58:32] as per the architecture of your cpu this is your processor intel i core i7 intel is the company [01:58:43] core i7 i7 represents what is the capacity and it also has with generation you can have i7 with [01:58:51] seventh generation you can have i7 with 10th gen also this indicates something as the capacity of [01:59:00] of this processor. [01:59:01] So this instruction set is according [01:59:03] to the architecture of it. [01:59:05] Suppose if I have RISC processor, [01:59:08] then this instruction set will be according [01:59:10] to the RISC architecture. [01:59:13] So instruction set, registers, data types, [01:59:15] memory model, exceptions, [01:59:17] everything happens at this processor level. [01:59:21] And you can see the instruction set is halfway through this. [01:59:27] Now microarchitecture comes in [01:59:29] within the processor layer itself. [01:59:32] Because processor is the one which splits this architecture [01:59:36] into microarchitecture, and it gives to all the elements. [01:59:43] From processor, it goes to all other elements, [01:59:47] which could be your registrars, your cache, [01:59:51] your execution unit, or it could be your pipelines, everything. [01:59:57] So basically, microarchitecture, what it does, [02:00:00] It fetches from the architecture, decodes it, executes it. [02:00:06] And it does it for whom? [02:00:08] For cache, execution units. [02:00:10] And then it will load or store units. [02:00:15] And finally, it would branch the predictor. [02:00:21] So if you really want to understand what happens at this level, [02:00:25] I'll give you a source where you can go through. [02:00:28] It's a very plain English explanation with examples I will provide you. [02:00:34] It is little complex and I don't think I have time to explain. [02:00:38] But once it is done, actually it goes to the digital hardware, which is nothing but the physical. [02:00:45] All you see is your physical devices. [02:00:51] This word. [02:00:53] Okay, cool. Sundar, this is perfect. But now, still, you know, it's not clear to me, Sundar. Let me play a one minute video. I hope you're able to for just a minute. [02:01:18] i'm giving as part of this you can also play it and let me know if you are able to hear the voice [02:01:26] if you are able to hear the voice well and good if not you can play it on your own okay [02:02:28] can one of you confirm were you able to see the video did it make any sense no voice i can [02:02:35] understand not able to see any video oh okay fair enough it's just a minute so let me say it again [02:02:49] not an issue just a minute okay so i can understand the anxiety so what i will do is [02:03:45] anyhow this is part of the ppt which i am providing but still i'm just giving you [02:03:51] the url for this video it's a short video for this short video there is a full video which is [02:03:58] available how does computer hardware work this is almost like an hour and apart from this there are [02:04:08] full set of videos in this channel how different hardware inside a computer works all the three [02:04:18] are there so let us take a minute i will wait for a minute please play the video i think audio should [02:04:24] come in your own desktops laptops let's wait for it so once you have completed please message in [02:04:47] the chat yes it is in the same channel it is available i'm not sure there are people still [02:05:04] joining maybe they got disconnected and joining not an issue fair enough okay i do see a couple [02:05:17] of you have raised your hand but first let me get a confirmation that if you have seen the video [02:05:25] just a one minute video okay fair enough so uh before we go ahead let me just [02:05:36] allow your mic for a couple of you so aditya have allowed your mic aditya if you're talking [02:05:51] then probably i'm not able to hear you okay so now uh krishna i allowed your mic [02:06:07] look so uh actually i just wanted to uh know about the complete flow uh with with some example [02:06:15] because i was i was just searching up searching for it and i just came up with one example where [02:06:19] there it was doing the addition for five and two two numbers so here it was just like i go went [02:06:26] through all uh went through the complete flow of it and uh i just wanted to know that whether if [02:06:31] you like in case if you give that example and you explain using that example then it would be very [02:06:36] easy for me to like grasp the main concept of of the complete lecture so that was my question [02:06:45] definitely understand i'm going to do that with uh you know uh probably i'll what you are talking [02:06:56] about i will be i think you're referring to exactly saying what memory is doing what cpu is [02:07:02] doing how do we identify at the operating system level and how is it getting transmitted to the [02:07:08] storage is that what you're referring to krishna yes yes uh like it was just telling that how it [02:07:13] is just like how the CPU is [02:07:15] working, like why it is [02:07:17] like taking all the [02:07:20] commands and instructions from the RAM after [02:07:21] loading everything, like the operating [02:07:23] system is going to load everything, whatever the code [02:07:25] we want to run, which is going to get loaded into the RAM [02:07:28] after that. But yeah, [02:07:29] but I have one doubt, sorry to interrupt. [02:07:32] Hold on, hold on. Let me just answer [02:07:33] to that and then we will come to your doubt. [02:07:36] See, that is something that we will be seeing [02:07:38] in our labs. Okay. [02:07:40] This is a conceptual understanding [02:07:41] and that's the reason we have a parallel [02:07:43] lab also going on we'll see that in the labs just go ahead with your doubt krishna yeah the second [02:07:50] is that i did i couldn't understand the connection between the architecture and the micro architecture [02:07:57] that how it is getting like uh making a connection uh between the architecture and the micro [02:08:04] architecture how like that for the different components it is giving the instruction and [02:08:08] is connecting with it because the instruction is given by the processors so processor is assigning [02:08:14] those activities so architecture is broken into micro architecture by the processor given it to [02:08:21] different components of the processor so it is able to control it will be able to give receive [02:08:28] and then even it will be able to bring it together that is done by processor so it has full control [02:08:36] about it but how processor knows that which micro which particular component of the micro [02:08:42] architecture needs to be called or needs to be accessed i think then i need to go for a micro [02:08:49] architecture session of how it is designed krishna so for this program i think if we know that [02:08:57] processor has the ability to split the architecture into micro architecture and [02:09:03] use the different [02:09:04] sub-components that it has [02:09:07] but it should be good [02:09:09] and definitely I will provide you a resource [02:09:11] to understand how exactly it happens [02:09:14] because how [02:09:15] microarchitecture is [02:09:17] broken down itself [02:09:19] is a session of 4 hours [02:09:21] which I normally take [02:09:23] so [02:09:24] so how is your [02:09:26] probably Reda has given [02:09:29] your OS is only installing that [02:09:31] processor architecture softwares like arm x84 no that's not what he's asking about he's asking [02:09:38] about how cpu is going to break up the architecture into micro architecture am i right krishna [02:09:44] exactly exactly that itself is a logic built within the architecture so you are writing an [02:09:53] application wherein you have written a home page wherein you are taking an input and calculating [02:09:58] five plus two is seven and if somebody asks like how are you calculating five plus two how are you [02:10:05] able to determine it is seven and if i don't know anything about programming if that is my question [02:10:10] to you all you would say is i've just written the instruction to the computer to do am i right [02:10:17] yes beyond that will i be able to understand if you explain oh i have a c language in this i have [02:10:24] written those lines it has to be compiled there is a compiler compiler turns the code into [02:10:30] will i understand anything as a user so if i'm interested to understand first i need to understand [02:10:37] the c before even getting into how it is getting converted so for that you need to understand the [02:10:43] architecture first before you're trying to understand how it is getting broken down so [02:10:51] So suppose if it is giving 100 instructions, it is an instruction set, Krishna. [02:10:56] It is not one instruction. [02:10:59] So definitely when operating system gives, it will split and give us 100 instructions as a single set. [02:11:05] And processor will receive that 100 instructions as a single set and then break down according to its subset. [02:11:12] So that logic is built up within the processor architecture. [02:11:17] Are we good? [02:11:19] Yeah. [02:11:20] It need not have to break. [02:11:21] It has to just identify and assign. [02:11:24] That's all. [02:11:25] It will be broken down by operating system. [02:11:28] That's why we call it as an instruction set and not instruction. [02:11:33] Operating system understands how to break it up into multiple instructions to be given. [02:11:39] Yeah, people are posting like the architecture of a 8086 microprocessor. [02:11:44] So you need to understand the processor architecture before getting into microarchitecture, Krishna. [02:11:51] Okay. [02:11:52] Okay, good. [02:11:52] So let me allow you, Rabin Singh, if you are allowed. [02:11:59] Good evening, sir. [02:12:03] Am I audible? [02:12:04] Yes, sir. [02:12:05] Yeah, you are pretty much audible. [02:12:07] Thank you. [02:12:08] My question is, instruction set and micro architecture, where actually memory is configured? [02:12:17] because instruction said that would be probably [02:12:21] how the instructions are taking into the A085 or A086, [02:12:26] and that goes to the various pipeline with the CPU. [02:12:31] Are the memory integrated with microarchitecture? [02:12:39] Okay. [02:12:40] So now memory is one of the subcomponents of CPU. [02:12:44] okay we are not going to put anything in the memory directly nothing will go to memory directly and [02:12:51] the processor only is going to give the instruction of what should be there in the memory so from the [02:12:59] instruction set whatever instruction is for the memory will be given to the memory by the processor [02:13:05] if the instruction set is to retrieve the data from the hard disk [02:13:09] then processor is going to give that particular instruction to the hard disk [02:13:15] how it will be able to give that [02:13:17] instruction to the hard disk. There will [02:13:19] be an interconnect between processor [02:13:21] and hard disk [02:13:23] and that interconnect will be part of the [02:13:25] bus and bus is [02:13:26] there in the motherboard. [02:13:31] Are we good? Robin? [02:13:33] Yeah, thank you. [02:13:35] Okay, cool. [02:13:37] Yes, Ankar. [02:13:46] Ankar, Alok, [02:13:49] Mishra. [02:13:53] Okay, fair enough. [02:13:55] So now we have seen a video. [02:13:56] And let me share my screen now. [02:14:00] I have included two more channels, not just video. [02:14:06] It would be part of the PDF that I'm sharing, [02:14:08] so you can use it to spend some time. [02:14:11] When I say some time, it is definitely in hours. [02:14:15] So you can plan, you can understand different part of the hardware, [02:14:18] how it is designed, how it works. [02:14:21] Now, we have seen the abstraction. [02:14:28] There are two things, software and hardware. [02:14:29] and where exactly it does [02:14:33] and why do we require this obstruction [02:14:35] first of all [02:14:36] first of all it reduces the complexity [02:14:39] we don't need to see anything that is happening [02:14:41] inside the cabinet [02:14:42] and it will also improve the portability [02:14:46] tomorrow my memory [02:14:48] goes bad I will just take [02:14:50] the memory that is there in my laptop [02:14:52] I will put a new memory [02:14:54] still my operating system is going [02:14:56] to detect it and it will work [02:14:58] and processor will assign tasks [02:15:01] to the new memory [02:15:02] so it improves the portability [02:15:05] which one the abstraction [02:15:08] because memory knows [02:15:09] what it has to do [02:15:10] it doesn't have to tell [02:15:11] how it is doing it [02:15:12] to the processor itself [02:15:13] now it enables reuse [02:15:18] that means it's a temporary storage [02:15:21] for example the memory [02:15:22] you are using it [02:15:23] for all operations throughout [02:15:26] now you might be browsing [02:15:28] after 10 minutes [02:15:29] you might be viewing [02:15:30] the video in Netflix [02:15:32] after 30 minutes [02:15:33] you might put it off [02:15:34] After two hours, you'll come back. [02:15:36] You might work on that code that you are developing. [02:15:41] You might be using VS code. [02:15:43] Everything is coming from memory only to you. [02:15:47] Nothing comes to you directly from hard disk. [02:15:50] If it directly comes from hard disk, then there will be a lag. [02:15:56] Since there should not be a lag, memory plays the temporary storage role. [02:16:01] and from there it is whatever you require only is there in the memory nothing else will be there [02:16:08] in the memory you will see that how to find out what i am working currently and how to see that [02:16:16] you are going to see that now in this between the application and the hardware what is abstracting [02:16:24] is our operating system operating system is the abstracting layer between our application [02:16:31] If we don't have this operating system, how will the hardware function? [02:16:38] It will not be able to function. [02:16:41] Because there is nobody who is going to tell what we are requesting to them. [02:16:48] If I continue to take this lecture in French, and none of you knows French, [02:16:56] will that be effective, first of all? No, it won't be. [02:17:01] And that's the reason we get somebody in between who's going to translate on the go of what [02:17:08] I speak in French to you as English. [02:17:10] And what you speak in English, I'll get it translated to French. [02:17:18] Because hardware knows only one thing, that's all. [02:17:23] Someone has to do that conversion job. [02:17:25] Which component does that operating system? [02:17:29] An operating system converts it and gives it to the processor first. [02:17:33] From there, it gets distributed. [02:17:36] So the interaction from the operating system is the processor. [02:17:39] But does that mean that operating system will not interact with any other component? [02:17:44] No. [02:17:45] All I am trying to say here is operating system's primary contact is processor. [02:17:51] But if the request is related to disk, then it will go to disk directly because [02:17:58] the interconnect it is not connect it is interconnect it's like your internet it is [02:18:06] not network it is internetwork you can reach any destination from anywhere you will be able to find [02:18:13] a path when we say interconnect all the components are connected in the same circuit [02:18:22] so operating system will be able to access the hard disk directly memory directly [02:18:28] Suppose as an administrator, you are telling that, please clear the cache. [02:18:34] You are the administrator. [02:18:37] You are giving this instruction. [02:18:40] I see that application is getting information from the cache, and that is wrong. [02:18:46] Let the cache get rebuilt. [02:18:49] For that, if I clear the cache, it will get rebuilt. [02:18:52] If it gets rebuilt, I'll get the right data in my application. [02:18:56] so now here you are giving the instruction from the operating system here clear the cache [02:19:03] now is the operating system going to give it to the processor now the processor will give it to [02:19:13] the cache only that instruction processor will clear the cache sorry cache will clear it [02:19:20] but it's not going to say how it clears it will say i'm empty now the next instruction will come [02:19:26] from the application, [02:19:28] oh, you don't have it. [02:19:30] At least better you have it, man. [02:19:32] That's what the application [02:19:33] is going to tell cache. [02:19:35] Because as a developer, [02:19:36] you have developed the application [02:19:37] to look at the cache first, [02:19:39] not memory, not hard disk. [02:19:44] So once you clear the cache [02:19:46] from the operating system, [02:19:47] then the application [02:19:48] is going to put up a request [02:19:50] to through operating system [02:19:51] to fill the cache. [02:19:52] When it fills the cache, [02:19:55] the data is fresh. [02:19:57] No errors. [02:19:58] So, operating system can communicate with any hardware component, for the only reason [02:20:07] that everything is interconnected. [02:20:09] It's not everything is connected, everything is interconnected. [02:20:15] Using the interconnect, which is a bus, and that bus is in the motherboard, and everything [02:20:22] including operating system is sitting on the motherboard. [02:20:26] Where is operating system sitting? [02:20:28] system is sitting in the disk storage so when you're switching on that is the powering on the [02:20:34] system first thing it is going to look at is the storage and it will look at for the bootloader [02:20:40] what is bootloader it is basically a small program which will boot up the system and rest [02:20:46] other information it will be able to take it if it is able to come up successfully so can i see it [02:20:56] as a hierarchical order? [02:20:58] That is your question. [02:21:00] No. [02:21:01] For your understanding, [02:21:02] I have put it as a hierarchical order. [02:21:06] It is not hierarchical order. [02:21:08] It is not sequential. [02:21:11] It can be direct also. [02:21:14] It can be random. [02:21:17] The example I gave, [02:21:18] cash clearance is a random. [02:21:22] For that purpose, [02:21:24] you go to cash directly. [02:21:26] because the instruction set itself is only clear the cache. [02:21:32] That's what we gave the command. [02:21:34] The whole instruction set itself is clearing the cache. [02:21:37] There are no other instructions in that. [02:21:39] So it will go directly to the cache. [02:21:41] It will get cleared. [02:21:43] Processor will have a track of what is happening, [02:21:46] but processor will not play the role of breaking that instruction set [02:21:49] and giving it to. [02:21:51] Because processor, when it breaks the instruction set [02:21:54] and give it to different components, [02:21:57] then only micro-architecture comes. [02:22:00] Now, if it is only one instruction in that instruction set, [02:22:04] okay, give the whole set. [02:22:06] It is something like you got a parcel for your apartment [02:22:11] and the entire whole parcel is for a specific apartment in the building, [02:22:18] then it gets delivered directly there. [02:22:22] But security will scan. [02:22:24] That's what CPU will do. [02:22:28] But in case if there is an organization which has sent product to five different flats within your building, [02:22:38] and all are parceled into a single unit, [02:22:42] then your security not only screening that, he will also open it. [02:22:47] Because there will be an instruction on the envelope, multi-recipient. [02:22:51] so the instruction set [02:22:54] if it is having a multi recipient [02:22:56] stamp on it then processor [02:22:58] will look into it to break it up into [02:23:00] multiple instructions and give it to [02:23:02] respective components [02:23:03] otherwise it will give the entire packet [02:23:06] to the [02:23:06] single component [02:23:09] great example is cache clearance [02:23:12] now [02:23:14] this is perfect Sundar [02:23:18] now this is [02:23:20] the example of [02:23:21] Krishna was referring to 5 plus 2. [02:23:26] I totally agree. [02:23:28] But before getting into the 5 plus 2 example, [02:23:34] we need to understand this from our daily routine, [02:23:39] which we open Excel sheet, we open document files, [02:23:43] we open VS Code application, we write codes, [02:23:46] we get onto the upgrading system console, [02:23:49] we give commands. [02:23:51] All these are our daily course. [02:23:53] so let's take an example [02:23:55] here in this example [02:23:57] what is there is [02:23:59] opening up a word document [02:24:01] it has [02:24:04] full instruction [02:24:07] full description [02:24:09] all I am going to do [02:24:11] is I am just going to [02:24:13] have this on the screen [02:24:15] for 5 minutes [02:24:16] I have described all the path [02:24:20] I have described all the components [02:24:23] I have also described [02:24:25] the layers [02:24:26] this is something which is [02:24:28] put everything together [02:24:30] so please [02:24:32] go through this [02:24:33] 5 minutes is the time [02:24:36] what you will have [02:24:37] and if you have any queries I am more than happy to [02:24:40] clarify [02:24:41] I will do that [02:25:09] yeah [02:25:11] just take 5 to 7 minutes [02:25:18] just [02:25:20] if you have understood [02:25:22] this flow [02:25:23] only understanding [02:25:25] don't get into the depth [02:25:27] we will get into the depth in the next two sessions we will get into the depth [02:25:32] we will talk about every stage but if you're able to understand the flow correctly that's [02:25:40] all is required please give me a couple of minutes i should be back hi guys uh i'm back [02:31:13] am i audible am i clear okay great thank you very much for the confirmation so [02:31:27] Okay, so now let me go back to the previous to explain the post and boot. [02:31:37] Now, this is the system, server. [02:31:40] It is having a power card wherein the power will be connected. [02:31:44] And when you switch on the power, it goes through a process called POST. [02:31:51] That is power on self-test. [02:31:53] and what it will do is [02:31:56] the moment the power comes in [02:31:57] somewhere it needs to start [02:32:00] this entire board [02:32:02] somewhere it needs to start [02:32:03] immediately it will go to the processor [02:32:05] so now [02:32:08] what will [02:32:10] processor do? [02:32:14] basically it will [02:32:15] look for the startup [02:32:20] code [02:32:20] it will have, every processor will have a startup [02:32:24] code, it is just a code [02:32:26] it's not a program [02:32:27] well according to that startup code what will that startup code will have it will have a basic [02:32:35] instructions about input and output system that is bias or in some system architecture it is [02:32:42] uefi so what will it do it will verify the components like registers system timer there [02:32:56] a chip which keeps the time within the system. The controllers, because it's a circuit, definitely [02:33:04] there will be controllers. So it is going to do a check on itself first. Then it will look at the [02:33:18] the other components, like memory, hard disk, keyboard, mouse, display card, everything, [02:33:30] whatever is available in that particular interconnect, that is the motherboard, it will check. [02:33:37] So it is basically initializing the hardware, POST is nothing but initializing the hardware, [02:33:46] And once it finds everything is good, then the firmware configures system setting and [02:33:55] initializes the storage controller. [02:33:58] The storage controller is the controller which connects the hard disk to the motherboard. [02:34:05] So finally, it will look for the storage controller which connects to the hard disk. [02:34:12] So Sundar, what happens in between? [02:34:16] that [02:34:17] RAM is faulty [02:34:20] it will stop there [02:34:22] you will say RAM is faulty [02:34:24] if you replace the RAM only [02:34:27] it will proceed [02:34:27] otherwise it will not proceed [02:34:29] sometimes when your laptop is boating [02:34:31] you might have got this [02:34:34] message [02:34:35] saying that [02:34:37] your time is not set [02:34:39] battery is down [02:34:41] nowadays it is not the case [02:34:45] but earlier I am just giving you [02:34:47] A very simple example. [02:34:49] If the battery dries, time will not be kept. [02:34:53] So you will get that message. [02:34:54] You can bypass it. [02:34:55] But if RAM is faulty, then you can't bypass. [02:35:01] So assume that everything is fine. [02:35:04] Then it goes into the boot up sequence. [02:35:08] So now CPU knows where is the BIOS. [02:35:11] BIOS will do all the tests. [02:35:15] And finally, it will look for... [02:35:17] If everything is successful, it will look for a boot loader. [02:35:20] What is boot loader? [02:35:23] In the configuration, we would have mentioned [02:35:25] where exactly the processor can look for the operating system. [02:35:31] That boot loader will give you the operating system [02:35:34] and from there, the operating system will come up. [02:35:37] Once the operating system comes up, [02:35:39] then it is the responsibility of the operating system [02:35:41] to run your system. [02:35:43] so this is what the post and [02:35:48] port loader does for your [02:35:52] system [02:35:53] hope you are good [02:35:55] any queries any questions apart from that [02:35:59] before we move ahead [02:36:01] ok let me go back [02:36:06] yes Anupam before we move ahead [02:36:12] I am allowing your mic [02:36:14] Anupam I am not able to hear you [02:36:21] if you are talking [02:36:22] would I have allowed your mic [02:36:30] yes there are architectural differences [02:36:41] that is why it is identified [02:36:43] as a different device [02:36:46] so [02:36:48] basically the difference [02:36:50] in the architecture gives the performance [02:36:52] now there will be only [02:36:59] one bootloader [02:37:00] and that bootloader [02:37:03] will give an option [02:37:05] that is because there is a battery [02:37:11] which helps to run the [02:37:13] clock inside the [02:37:15] system [02:37:17] but nowadays there is no battery the architecture has totally changed so [02:37:25] the moment the system comes it gets the time from an ntp server every operating system has its own [02:37:32] ntp system so it works now it is all from ntp service so okay cool perfect so let's move ahead [02:37:54] we have probably 10-12 minutes left out the block diagram of a cpu now we are getting into [02:38:04] each component and one doubt i had said like for booting system like cpu will be only responsible [02:38:11] or gpu like those functionality will be not there in gpu gpu is basically to process your graphical [02:38:19] requests with a higher capability even though you have gpu in the system the startup sequence [02:38:26] will go to cpu only and then gpu will be identified as an another resource like memory [02:38:37] make sense okay so now we are getting into the understanding of the cpu block [02:38:50] As soon as you have been telling all the time that within the CPU there are multiple, basically [02:38:58] what is the responsibility of the CPU? It has to fetch the instruction from the operating system [02:39:04] and then it has to decode the instruction what it received from the operating system. [02:39:09] It has to execute the operations from the instructions and to operate from the instructions [02:39:18] It is supposed to access the registries. [02:39:22] It is supposed to access the memory. [02:39:25] When I say access, basically it is taking the help of registers and memories. [02:39:31] And finally, it also needs to control the instruction flow. [02:39:37] Finally, it all needs to get integrated into a single response back to the operating system. [02:39:43] That is all is the responsibility of CPU. [02:39:46] Receive the instruction set, break up into microsets, assign it to multiple units, take [02:40:01] the help of registers and memory, receive the response from each unit, collaborate it, [02:40:08] give it as a single response back to the operating system. [02:40:12] all is the responsibility of a CPU. On the other hand, this does not look simple, Sundar, [02:40:23] what you have on the other side of the slide, but this is sufficient for our purposes without [02:40:32] being overly complex. So in the middle of the CPU is the arithmetic and logical unit. [02:40:43] What is the job of this ALU? In short, we call it as ALU. What is the job? It's basically to perform [02:40:49] only the arithmetic and logical [02:40:52] functions. Suppose if [02:40:54] the instruction that the CPU has [02:40:55] received contains [02:40:57] the calculation of 5 plus 2 [02:41:00] then it [02:41:02] will go back to [02:41:02] because it is a [02:41:05] mathematical function, arithmetic function [02:41:07] if you have [02:41:10] to make a decision yes or no [02:41:11] it will go to ALU. [02:41:13] Logical and arithmetic calculations will be [02:41:15] performed by the ALU [02:41:17] And we also have something called instruction register and pointers. [02:41:30] Instruction register and instruction pointers. [02:41:34] This all is under CPU, this all is within the CPU. [02:41:38] So the instruction pointer specifies the location in the memory containing the next instruction [02:41:45] to be executed by the CPU. [02:41:49] When the CPU completes the execution of the current instruction, [02:41:54] because it is a set of instructions, one after another, it will do. [02:41:59] So where is the next instruction that instruction pointer will have? [02:42:06] And after the instruction is loaded into the instruction registry, [02:42:10] the instruction register pointer is incremented by one instruction address. [02:42:16] here. Once it is loaded [02:42:19] into the registry, because ALU has completed [02:42:22] the calculation, next is in the queue, this will get [02:42:26] loaded into the register and from the register [02:42:29] it will go to ALU. Moment the register loads [02:42:32] into the ALU, it will give it back [02:42:35] into the accumulator and it goes back. [02:42:39] So instructor pointer will give it to [02:42:42] register. Register will give it to, moment it [02:42:44] who loads the current instruction into the register, [02:42:48] then the pointer will be added with 1. [02:42:52] That means the next location of the instruction. [02:42:56] Now, what is the role of cache, L1 cache, L2 cache, L3 cache? [02:43:04] The CPU never directly accesses RAM. [02:43:09] Modern CPUs have one or more layers of cache. [02:43:12] Earlier we used to have only one cache, [02:43:14] but now we have multiple layers of cache itself. [02:43:18] One thing we need to keep in mind is, [02:43:20] the CPU is not going to access directly the RAM, [02:43:23] that is memory. [02:43:27] So the reasons for this are beyond the scope of this study, [02:43:31] but cache memory is faster. [02:43:34] Why cache is closer to the CPU? [02:43:37] Because it is faster than the RAM. [02:43:40] That's the reason when your application [02:43:42] is also trying to get the data, [02:43:44] It will try to get it from cache rather than getting it [02:43:47] from the disk because it is faster. [02:43:52] And this cache is available in the CPU chip itself. [02:43:59] I told you a temporary storage, a small storage [02:44:02] that is available inside the CPU that is nothing but cache. [02:44:06] It provides data storage and instructions [02:44:09] to prevent the CPU from waiting for data [02:44:14] to be retrieved from RAM. [02:44:16] If CPU has to retrieve it from RAM, because RAM is the temporary storage, [02:44:21] so this is an intermediate storage which is faster than RAM and closer to CPU. [02:44:28] Why it is closer to CPU? [02:44:30] RAM is another unit in the motherboard, but cache is within the CPU. [02:44:35] That's why it is closer to CPU. [02:44:38] Here we have three levels of cache. [02:44:46] Level 2 and level 3 caches are designed to predict [02:44:50] what data and program instructions will be needed next for the CPU. [02:44:58] Then, based on that, it will move the data from RAM and keep it itself. [02:45:05] These cache cases are typically from 1 MB to 32 MB cache, [02:45:10] generally, depending upon the speed and intended use of the problem. [02:45:15] the level actually compared within the cache l1 is the one which is closest to the cpu [02:45:24] within the cpu also l1 is closest compared to l2 and l3 and within l1 there are two types [02:45:36] i and d i is instruction cache and d is the data cache so l2 and l3 will split the instruction [02:45:48] I will split the data with two different L1 cache. [02:45:52] And this L1 cache is closer to the registry here. [02:45:55] Because this is instructional cache, it is closer to register. [02:46:00] If it is a data cache, then it is closer to the other registers. [02:46:09] Normally, if your L2 and L3 cache is of 1 MB to 32 MB, [02:46:15] normally L1 [02:46:18] caches will be of 64k [02:46:20] by 12k [02:46:21] so now with this [02:46:24] understanding you can [02:46:25] probably look at any of the system [02:46:28] configuration and try to [02:46:30] understand [02:46:30] there it will be very clearly mentioned how much [02:46:34] is L1 cache, if they say 512kb [02:46:36] that 512kb is split between [02:46:38] i and d [02:46:38] L1 is not a single cache [02:46:41] it's a dual cache, one is i [02:46:43] another one is D. Now apart from this [02:46:47] we also have something called [02:46:49] memory management unit. [02:46:51] All this is part [02:46:53] of CPU. Only the [02:46:56] system clock is away. [02:46:58] RAM is a different unit in the motherboard [02:47:00] but everything else is within [02:47:02] the CPU. [02:47:04] What is this memory management unit [02:47:06] is going to do? It is [02:47:08] going to manage the data flow between [02:47:10] the main memory [02:47:11] and the CPU. Basically between [02:47:14] RAM and cache, MMU is going to play the role of managing it. It also provides some protection [02:47:22] required in multitasking environment. For example, conversion between virtual memory addresses and [02:47:28] physical addresses. In a virtualized environment, what we get is a virtual memory. But that virtual [02:47:39] memory is derived from the physical memory of the bare metal. So now who's going to keep track of [02:47:45] of my virtual memory address in relation [02:47:49] to the physical address, memory management unit will edit. [02:47:54] You may get your virtual machine using a hypervisor. [02:47:59] Hypervisor will give you a virtual machine. [02:48:01] It will also give you some two cores of CPU. [02:48:05] But actually, the machine might be having 12 cores. [02:48:08] You've got only two cores. [02:48:11] So these two cores are virtual, that means imaginary. [02:48:16] but it has a direct connection to the physical cores [02:48:18] of the bare metal. [02:48:20] Out of the 12, two is given to you, [02:48:21] which two, memory management, will maintain that. [02:48:27] We also have CPU clock. [02:48:33] We have a control unit. [02:48:34] Like how you have a memory management unit, [02:48:36] we have a control unit. [02:48:39] All the CPU components must be synchronized. [02:48:43] Whether it is cache, whether it is register, [02:48:46] whether it is pointer, whether it is accumulator. [02:48:49] Accumulator is nothing but whatever results [02:48:51] comes from out of the YouTube will be accumulated in this. [02:48:56] We have seen the size of the CPU in our video. [02:49:01] Inside this, inside that small unit, [02:49:04] we have so many things happening inside it. [02:49:09] So now this control unit will synchronize [02:49:14] the content in all other units. [02:49:17] For example, system clock. [02:49:20] Now we have a control unit. Earlier this control unit was not responsible for time. [02:49:25] That is why we had CMOS battery. [02:49:29] There will be a small battery like how you have batteries in your wristwatches [02:49:34] inside the system, in the motherboard. [02:49:37] Nowadays it is not required because we have control unit taken care of that responsibility. [02:49:45] So what if it will do? Is it going to have the time stored in it? No. [02:49:52] It has an instruction to synchronize the clock [02:49:55] with its own server, [02:49:56] which is going to run 24 by 7, 365 days. [02:50:02] From there, it will get the time and give it to the clock. [02:50:06] The synchronization is the job of the control unit. [02:50:10] Managing the memory addresses [02:50:12] is the job of the memory management unit. [02:50:15] Cache is in between RAM and CPU. [02:50:22] Because cache is closer to CPU, [02:50:25] because it is residing inside the CPU. [02:50:28] RAM is insiding on the motherboard outside of the CPU. [02:50:33] So maybe your CPU is too fast. [02:50:37] It completes, and I don't want to keep it idle. [02:50:41] So cache is going to play the intermediate role. [02:50:46] And L1 has instructional and data divided into two. [02:50:51] So the flow to the CPU is super fast. [02:50:56] CPU will never be idle. [02:50:58] And we also don't want TPU to be idle. [02:51:03] How it works? [02:51:05] TPUs work on a cycle that is managed by the control unit. [02:51:12] What we have seen is individual flows, [02:51:16] but this entire thing is controlled by the control unit. [02:51:21] I gave an example of time. [02:51:23] That's the synchronization. [02:51:25] It's one of the responsibilities of control unit. [02:51:27] but the major responsibility of the control unit is to manage the cycle. [02:51:37] So CPUs work on cycle that is managed by control unit [02:51:40] and is synchronized by the CPU clock. [02:51:46] So what you have in your CPU clock is very, very important [02:51:49] because the activities performed by this entire unit [02:51:53] is based on the time that is there in the CPU clock [02:51:56] and how it will be controlled based on the timestamp of each instruction that it has taken. [02:52:05] How it will queue based on the timestamp on that instruction set. [02:52:11] And we saw a series fetching the data, decoding the data, placing the data between the registers. [02:52:21] How instruction pointer is able to identify which is the next instruction in queue based on this. [02:52:29] Timestamp on the instruction from the CPU clock. [02:52:33] Suppose what if your CPU clock is full of zeros? [02:52:37] That means it doesn't have time. [02:52:43] Then your entire cycle gets into a loop. [02:52:49] So the need for the speed brought in so much change [02:52:53] in the architecture of the CPU. [02:52:55] The earlier CPUs, if you look at it, [02:52:57] did we have so many components within the CPU? [02:53:01] We had only ALU and CU. [02:53:04] Later, we got registers. [02:53:06] Since registers came, pointers came. [02:53:10] Now, at that point of time, CPU was directly interacting [02:53:13] with the RAM. [02:53:14] RAM was the temporary storage for CPU. [02:53:17] Then we brought in the cache into our architecture. [02:53:22] Since cache came in, there was a need of memory management, [02:53:27] so that was also made part of it. [02:53:29] This is a very, very simple, straightforward architecture [02:53:32] of a processor. [02:53:34] But in reality, is this the only components of the CPU architecture? [02:53:40] The answer is no. [02:53:41] But if we understand this much, that should be sufficient for our program objective. [02:53:52] So one problem early CPU designers encountered was wasted time in various CPU components. [02:54:01] So one of the first strategies for improving CPU performance. [02:54:05] So the architecture of the CPU started changing from time to time [02:54:11] only for the only aim, the speed of the CPU. [02:54:16] Speed of the CPU is dependent on busy time plus idle time. [02:54:24] So if I have 100% busy time, then my speed increases automatically. [02:54:27] So I will not leave CPU idle. [02:54:35] When the current instructions has been decoded, [02:54:38] the next one is fetched and placed into the instruction register. [02:54:43] When ALU is performing, the next instruction is ready in the register. [02:54:49] And who will put it into the register? [02:54:51] Cache will put. [02:54:52] Where will it get from the L2 cache? [02:54:54] Where will L2 cache get it from the RAM? [02:54:57] So basically, when the operating system gives the instructional set, [02:55:00] it is going to place it in the RAM for the CPU. [02:55:04] And CPU is not going to take the entire thing and process it. [02:55:08] It's going to take it in bits and pieces, [02:55:10] and this is exactly what I meant by microarchitecture. [02:55:14] This design looks nice and smooth, [02:55:18] but factors such as waiting for input-output [02:55:23] can disturb the entire flow. [02:55:26] Not having the proper data or instructions in the cache [02:55:30] requires memory management to locate the current ones. [02:55:35] Your CPU is idle. [02:55:37] So this control unit is going to watch all these cycles and it will try to make the cycle [02:55:47] smooth, no wait period, no wait for input-output, no wait for the next transaction. [02:55:56] All those things will be ensured by the control unit. [02:55:58] So in our school days, if we have studied the computers, we all know that there are [02:56:04] two components in the CPU. [02:56:05] One is control unit and another one is ALU. [02:56:09] That was right in those days. [02:56:13] But after that, all this development happened. [02:56:15] And that's why the architecture of this changed. [02:56:18] Now, this is one architecture. [02:56:22] But I may design this differently. [02:56:30] It is something like how Honda car is different from Hyundai car. [02:56:36] How is it different? [02:56:38] Factor of design. [02:56:39] where everything else is based out of design. [02:56:43] So design gives us the architecture. [02:56:47] So if somebody feels that, yes, [02:56:48] there can be a better architecture for the CPU to function, [02:56:52] then they'll come up with it. [02:56:55] So we did not have X86 earlier [02:56:57] until Intel came into the picture. [02:56:59] Earlier, it was only risk-based systems, [02:57:04] RISC, not RISK. [02:57:09] So those are the type of processes which we have used it in the mainframes. [02:57:15] Even Apple uses RISC. [02:57:20] So now the question may come. [02:57:22] Is XH6 better, RISC is better? [02:57:25] It depends on what you are going to use. [02:57:28] If you are going to travel within the city, [02:57:31] then I would probably say that the smallest electric car from MG is better. [02:57:38] it can't go beyond 60 kilometers [02:57:41] per hour but you can't [02:57:43] go beyond 60 kilometers [02:57:44] per hour in the city [02:57:46] now if your purpose [02:57:49] is [02:57:49] travelling from [02:57:51] Dubai to Pony, expressway [02:57:55] then will I suggest [02:57:58] MG [02:57:59] small electric vehicle, no [02:58:02] I'll probably [02:58:04] say go for a good [02:58:06] SUV which can reach [02:58:08] up to 160-180 km per hour, that architecture is totally different, right? [02:58:17] SUV's architecture of how engine is placed in the bonnet and how engine provides fuel [02:58:23] and how engine understands the speed and controls it, the type of brake you have is totally [02:58:32] different. [02:58:33] The architecture is different. [02:58:34] if you run that vehicle at 60 kilometers [02:58:38] per hour then it will also run [02:58:40] there is nothing wrong in it [02:58:42] that is [02:58:44] previous version support [02:58:48] downward support [02:58:51] so your SUV can go [02:58:54] slow, it can also go fast [02:58:56] but MG electric vehicle [02:58:58] cannot go beyond 60 kilometers [02:58:59] at any given point of time [02:59:01] so if you are traveling between Mumbai [02:59:05] Pune [02:59:06] get an SUV which can travel [02:59:09] at 160, 180 per hour [02:59:12] because it is allowed. [02:59:14] The city, [02:59:17] this is the system you need to choose. [02:59:19] So purpose makes all the choices. [02:59:22] And we understand the purpose [02:59:23] and choose the right one. [02:59:25] To go on the expressway, [02:59:27] if somebody says that go by MGL, [02:59:28] it is small. [02:59:31] That means the choice is wrong. [02:59:32] There is nothing wrong with the vehicle. [02:59:35] There is nothing wrong with X86. [02:59:36] there is nothing great about risk [02:59:40] but these two are built for two different [02:59:42] purposes [02:59:43] so based on the purpose we will choose [02:59:46] the processor so that is why [02:59:50] we have a different architecture of the processor [02:59:52] and [02:59:53] operating system [02:59:55] is intelligent enough [02:59:58] to know [02:59:58] whether the system has [03:00:01] x86 processor [03:00:04] or whether the [03:00:06] system has a risk processor [03:00:08] The operating system is intelligent enough. [03:00:12] Then the entire instruction set, [03:00:15] it will convert to the architecture of the CPU. [03:00:20] That's why we call it as instruction set architecture. [03:00:24] Based on ISA. [03:00:26] Based on architecture, your instruction set will be compiled. [03:00:30] And then based on that, your microarchitecture will be developed. [03:00:34] So what is the type of processor you have is very, very important. [03:00:37] for your system to function cool now this was the plan to cover storage also today but [03:00:50] probably we spent more time than planned we will start with storage we will understand [03:01:01] the difference different levels of storage the purpose of it and then we will move ahead [03:01:10] we will start with storage next week [03:01:15] so guys, I will be sharing this PDF [03:01:20] I will be uploading it [03:01:23] today [03:01:34] I was a little slow [03:01:39] I will try to pick up some speed [03:01:44] next week [03:01:46] but I am not going to [03:01:48] press the pedal, don't worry [03:01:50] maybe from 40 km per hour [03:01:53] to 50 km per hour or 60 km [03:01:55] per hour is what i'm going to aim at why i'm doing this slow for two sessions or three sessions this [03:02:02] is the foundation what we are going to do for the whole of 14 sessions this is foundation [03:02:14] so please go through those videos please go through the documents and please [03:02:23] go in the sequence that the presentation suggests. We will continue next week. Any queries, any [03:02:34] questions before that I started seeing? Thanks already. So, any queries, any questions? [03:02:42] Yeah, I have the question, sir. Am I audible, sir? [03:02:46] Sir, regarding the last slide wherein you have shared the GPU architecture. So, I just [03:02:54] wanted to understand like if all the instruction gets loaded in the instruction pointer that's the [03:03:02] first question and no it will go one by one let it let me answer then and there the instruction [03:03:09] pointer will have one instruction at a time pointer will load it to register and take the [03:03:16] next instruction from the cache cache will get the instruction from memory so but but from the [03:03:25] instruction point i do not see a connection that is there uh to the alu so so how does that work [03:03:32] that will go into the registry it will not from pointer it will not go directly to the unit [03:03:39] from pointer it will go to the register and from there it will go okay okay and and how [03:03:48] that that is related to the accumulator like uh accumulator is collecting all the results [03:03:55] once alu has completed the calculation alu is not going to give it back to any register cache it [03:04:06] will give it back to accumulator that in turn will go to ram so there is a relation that you [03:04:15] have shown with the like the instruction pointer with the accumulated yeah because the accumulator [03:04:22] suppose if you have calculated five plus two is equal to seven that five plus two is equal to seven [03:04:27] is the result of which instruction that pointer will add that instruction number and then send it [03:04:34] back okay cool perfect yes vidya vidya right or good evening sir yes go ahead [03:04:52] sir thank you for explaining every topic in detail uh just a small request uh [03:04:58] Could you please make this session a bit interactive [03:05:01] just by maybe by turning your camera [03:05:04] or annotating on the slides? [03:05:07] Because as it's a three-hour session, [03:05:09] so it's hard to cope up just by listening. [03:05:11] And it's also a little difficult to make notes. [03:05:17] Okay. Fair enough. I'll do that. [03:05:20] Okay. Thank you. [03:05:21] Interactive, definitely I would have made it. [03:05:24] But having 500 participants, [03:05:27] making it interactive [03:05:30] is going to be a challenge [03:05:32] on its own [03:05:32] we also need to consider that point [03:05:35] but [03:05:37] yes I understand maybe like [03:05:39] after 40-45 minutes we can have [03:05:41] a short Q&A session that will [03:05:43] also be fine [03:05:44] I believe that's what I'm doing every 45 minutes [03:05:47] I'm asking for it [03:05:49] but anyhow [03:05:50] I'll take up your [03:05:52] suggestion and we'll do that [03:05:55] and in case [03:05:58] if you are feeling that we need to break up [03:05:59] to any point of time [03:06:01] don't feel shy to give it in the chat [03:06:04] you can definitely tell [03:06:07] not a problem [03:06:08] anything else [03:06:15] from anyone [03:06:16] yes [03:06:17] I want to ask [03:06:28] if we need to follow any [03:06:30] group [03:06:31] your voice is not [03:06:34] clear [03:06:35] yes [03:06:38] sir [03:06:40] am I audible [03:06:41] yeah you are audible yeah go ahead [03:06:44] speak a little slow so that [03:06:46] I will get it [03:06:47] sir I want to ask [03:06:49] if we need to follow any book [03:06:52] for these books [03:06:53] yeah definitely [03:06:55] I will show you [03:06:57] share it in the screen it is available [03:07:00] in your syllabus [03:07:02] itself [03:07:03] just to give me a minute [03:07:05] for this [03:07:09] your [03:07:10] table of contents [03:07:12] let me share it [03:07:14] hope you are able to see my screen [03:07:18] now [03:07:19] so you can see suggested readings here [03:07:24] Devashish [03:07:31] yes sir [03:07:32] so [03:07:36] all the three books [03:07:46] are very good books okay if you look at the publishers whether either it will be john [03:07:53] valley john valley is nothing but orally tata megrah hill so all are like a very good published [03:08:00] books some may be little old compared to the other but still it is good i'll do that actually [03:08:13] my slides my recommended assignments and also recommended books is sufficient for [03:08:21] the semester exam yes it is available in e-library if you have subscribed [03:08:32] then you would have get it or you can also purchase it from portals all the three books [03:08:40] are available in amazon i will be uploading to the model so no worries enjoy yes we do have [03:09:01] mcqs for our exam okay guys thank you very much actually it shows like three hours 40 minutes [03:09:13] i'm really not sure i'm getting confused you know i started the recording so that's okay [03:09:20] Let me stop the recording.