# FCS 13 Sep

- **Course:** 5102 - Foundations of Comp Sys
- **Recorded:** 2026-09-13 00:00
- **Transcript:** 2290 segments, 21959 words
- **Made by:** deepdml/faster-whisper-large-v3-turbo-ct2

---
Hi, everyone. Just wanted to confirm, am I audible? Am I clear? Okay, great. Thank you so much, guys. Just give me a minute. I will turn my screen. Am I audible now, guys? Okay, great. Not sure what was the problem. I did nothing. But anyhow, it's time for us to start. So today, our session is going to be little interesting. I do see Uday raising his hand. Yes, Uday, I have allowed your mic. What is that? Uday, if you are there, you can unmute yourself and talk. Okay, great. That's fine. Not a problem. So today we are going to see our focus is going to be on CPU. Earlier, Here we have seen what is the system, how it gets forward on, what is the process. I'm not sure, Salim, how to enable the transcript, if you can tell me then I can do that. All I was told is how to enable the recording, pause the recording and other things. Okay, recording is anyhow started. I'm not sure how to enable the transcripts.

If any of you can tell me how to do that, click on more as I have done that. I do see timer, video effect, audio settings, language and speech, and settings. Chat bubbles, mute notifications, show live captions, Audio settings, video, record and transcribe. Okay, great. I have only stopped recording and start recording. That start transcription is something which is disabled for myself. So I'm not sure if I can start the transcription. It is disabled. I will not be able to. Only recording is enabled for me. Okay, cool. Coming back. So, we are going to see the most important topic. Until now, we have seen how a system is booting up when powered on, what is the process of system boot up, and then how it comes for the operation. We have seen the components of the system. We understood different components that is part of the system, and CPU is one of them. So registers, data path, and instruction execution. That is what we are going to understand this session.

So the components of the CPU, basically the session would progress starting with components, registers, data path, instruction format instructions structure and how are we going to trace the instruction and what is the instruction cycle for a single processing that is what we are going to see today so being said that this is the modern cpu so if you look at this modern cpu you can understand this is how the shape of the CPU would be inside the computer and it will be less than a palm size overall what you are seeing is less than a palm size but it does have so many things inside it it is basically a circuit and chips and we have components all through basically this is the bus which is going to connect all the components together. And to this bus is attached the cores, GPU cores. When we say like 4 core, 12 core, basically there would be 4 cores if it is 4 core. There will be 12 cores if it is a 12 core. If you say the server is 24 cores, then you will have 24 wires like this inside the CPU.

Now, we understood the process, how it gets executed within the CPU. We know cache. Cache is very small, but very fast to store data and pass on the instruction. The cache is divided into three, L1 cache, L2 cache, and the L3 cache. Now the L1 cache is further divided into two, L1 cache for instructions and L1 cache for data. So this is instruction cache and this is data cache. Now L2 cache is a little larger than the L1 cache. So this is actually shared, but this is also slower than L1. L1 is faster, but it is smaller. L2 is comparatively bigger, but it is a little slower compared to L1. And L3 is shared care. So you will have L1 cache for every core you have in your CPU. L2 also you will have, suppose if you have a four core, then there will be four pairs of L1 cache, fabricated into instruction cache and data cache, and each cache is going to be associated with a specific core. Now the L3 cache is something different from L1 and L2.

It is going to be, L3 is something which is shared across all the cores. Now, along with this cache, we might have a GPU. It is optional. If you don't want, it won't be there. If that system doesn't require, if the system design does not require a GPU, then the CPU will not have the GPU. It's an integrated graphics. It's optional. It is on-chip, basically for graphics and multimedia processing. Nowadays, in many of the modern CPUs, GPU is integrated, but it is optional. So suppose if you are going to buy a laptop, and if it is, the normal terminology that we hear is low-end, high-end. So most of the low-end laptops, which would also cost you lesser, may not have a GPU, integrated GPU. So if the CPU do not have an integrated GPU, but will it have an option to add a GPU if you want, yes, that option will be kept open. But by default, GPU will not be integrated to the CPUs that is being used in the low-end system.

Now on the other side, we also have a lot of components. Now the control unit. this control unit actually going to communicate with the external something like RAM, hard disk so one thing we need to be very clear about is the other resources such as RAM, hard disk network interface, everything is outside of this CPU so who's going to communicate with all these external units that is control unit Now, this control unit will have another component called instruction decoder. This control unit will fetch the instruction from the memory, and then it is going to give it to the instruction decoder, which will decode the instruction that is available in the RAM and convert that into a machine language. So this decoding basically means constructing the machine language from the command that the memory has from an application program. It also has some execution units. These execution units is something like ALU, FPU, CIMED.

And so they would perform arithmetic, logical, floating point, vector operations, whatever we provide in our instruction. So we have a decoder unit which will decode the instruction that is available in the English language to the machine language. and once it is done that will be forwarded to the execution unit which is going to execute because by that time it receives the instruction it will receive it in the machine language so now this is not memory but it is a memory control basically the job of this memory controller is to interface with the system memory you may have 32 gb ram you may have 16 gb ram you may have 8 GB RAM, whatever it is. The job of the memory controller is to identify and connect with the memory to get the data from the memory into the CPU. Then we also have an IO controller. It basically handles the communication with other types of hardware, something like USB. If you are plugging in a mouse to your USB, it will detect it, it will identify, and it will

function but in case if there is no mention about this then it is a normal provisioning so this iowa controller is the one which is responsible for communicating with other cci devices it could include even your mouse which is connected through a bluetooth connection so the communication with the mouse will be handled by the input output controller the memory controller is different which will interact with the memory to obtain the data to get the data into the cpu on the same way input output controller will be able to communicate with the input output devices such as keyboard mouse screen anything it could be any resources that is part of the system can be part of this now we know that when we are going to start our desktop or server we are going to consume the power and bring up the components to the execution stage including cpu so that means cpu needs to have a consistent power the most important thing is

consistent power then we can expect the maximum from the cpu so now we have understood that cpu is a unit that has a lot of components inside it and each has its own role now let us look at the cores, these are the cores that is going to process, and these cores, as I said, first it will fetch the instruction, it is fetching unit, the instruction generally comes from the memory, so we have the memory controller which will connect to the memory and this component which is a fetch will fetch the code from the memory to the CPU now this will be given to the instruction decoder if it is not already there in the machine language it will be decoded then provided for further references so now we have four cores and each core has its own capacity and the instructions would differ from time to time so we really need to keep that also in mind so we have seen the components what are they going to but the most important thing

is this is the CPU package the entire all the components are going to be inside this package and that would be not even more than a palm size So now you can understand how critical the CPU is for processing our application or data. Okay, cool. So now, if we have seen this, it would be good, no? If we can see that what is happening if a program is passed on to the CPU execution, how it works. So let us look at the flow of a program. Now keep the previous slide in mind. Do you want to just skip this slide for a minute? Go through this slide and let this slide be in your mind. And then we can definitely look at the flow and how it is going to happen. We might have just enabled the support email ID and probably you can. Okay, so now keep that in mind. Now let us look at it. So there is a program which is available in the secondary storage, which has stored not only this program, any program that we have written will be stored in the hard disk

drive or any alternate SSDs. So in that case, the program is going to get loaded. How is it going to have access to the CPU? How is it going to access it? It will have its own path from wherever we are. And the program is going to display on the screen and the user is going to enter two integers one is 10 and 50. So basically it is an input user input and this input how it is taken it is taken from the keyboard and where is this keyboard connected to it is connected to one of the Ivo controller so that we will get access to the key there are some settings at the operating system level also but our focus is going to be here from the hardware perspective So now 10 and 25, that's what has been entered in this example on the wall. Now concern would be something like if we go there, like how are we going to make it up? I have no problem, it's your choice. So now the user has given the input and it has gone through the input device,

that is the keyboard and keyboard also is connected to the IO controller. So now who is identifying these properties? is the controller who is identifying these properties and then forward it to the memory so now the second step is whatever user has input into the terminal now it is going to get transferred to the memory which is ram so ram will create instructions ram would create instructions and there are types of instructions available we will see that in detail but at least here it has been told that somebody was trying to abduct the theta again in ramayana something like that so now it will create its own registers what is register register again is a small unit of the storage it would be as small as possible because so that it can be as fast as possible as well there is no point in having 20 million aircraft but we don't know we thought that we will do it but we never got done can we say that from the memory memory has allocated the program

instructions the program instructions simply say that i have received an input 10 and 25 and we want the result what is the result we want the addition of 10 and 25 so that's the stuff which is there in memory at this point of time and now we have a memory controller so which is always connected with the memory so now it is going to take the instruction and then execute it in the platform so now we have cpu receipt so without having a signature like it would be possible okay so now the registers is within the cpu so as a third step now the memory data needs to go into the cpu so that the process of addition can happen and once it is successfully computed it can send it to the ram back so now cpu is temporary for transactions it's a permanent entity in the architecture but it is sort of a temporary requirement that could be somebody who might have not paid the rental charges so there are time if it is like something that we need to yes we can discuss and close it

so this is what is exactly happening so now we have registers and the registers we know that it is very small and the data is so now the data has been moved from the RAM this input data when it has been moved to the RAM the control unit is going to control the flow, it is not going to handle the data We need to be very clear about this. The control unit is only to control the flow of the incoming data, and it is not going to handle the data itself. So an instruction will be created, and the instruction will be given to the CPU, and the CPU will perform the instruction. How instruction? Because we do have the decoder. Decoder is going to decode the app that we have asked for better clarity and information. so now we are looking oh we have so many programs see these microsoft services and it would have been done point of testing so we're not going to really bother about whether all the 10 steps will be covered in detail and hoping that yes so now this is the whole life cycle for 10 plus 25 that

is going to give back the answer and if you look at carefully the answer provided is from okay so somebody has joined i believe okay so it actually disturbs the flow okay fine anyhow i'll manage it so now the cpu core will receive will register and there are three things in this execution one is integer one second is integer two and the third one is the property of addition so the property of addition should reach 35. now we have three registers and all the three registers are storing the data and now when the cpu is ready the cpu is going to hit 3 and then see that if that works for us it should but let us wait so now do we still have participants joining okay we waited for more than five minutes okay cool no issues and your recording is there so guys who are joining a little late can access the okay so now this is the example we have seen From the control unit, it has gone to decoder and decoder has decoded the program into a machine language.

And that machine language is going to travel from here on to add the integers and give the result as 7. So what is the format of this? Sorry. Okay, cool. so now we have understood from cpu it has gone to its own subcomponents such as from the register's perspective we have r1 r2 r3 r1 is going to have one integer r2 will have another integer the operand is and add that means addition so basically 3 plus 4 if it is then we should get 7. So, once that execute addition, basically execute addition is happening, then it will happen in the ALU unit. Because ALU is one of the unit that is, sorry guys. So, once that addition has been executed, now the result will be stored in R3. So, So what is R3? R3 is another register. What is a register? Register is a small storage with a limited capacity. So now we have seen how the addition happens. The addition will become part of the instruction in the machine language to be provided to the CPU so that it will process and it will close.

While closing, you want a couple of emails to be notified that it has been successfully completed. so you can definitely inform whenever you see that happening so now this is the view of the cpu based on the target audience and based on the 1980 so this is not essentially what my they might be looking for okay cool so in the meantime you can go you can session up here come and then we will continue with this so it's going to be a little dry but i'm trying to put as much as much masala as possible and i will be connecting back to the environment that we were trying to create yesterday so all those things will happen but still you need to provide your commitment for this session that is my only expert okay cool so we have a program that adds to integer it goes through the keyboard it went to the ram from ram it has gone to the cpu cpu received it using the io controller given it back to that owner of their table and they can perform they want to fix it permanently as you can do that

okay cool so now what we have seen is we have seen a flow that is flowing from a source code that's what coming from the hdd getting loaded in through the iowa controller but before that if you look at it there is called something system bus as part of this architecture what is the system bus so basically it is the bus that we have seen in the last slide this is the one so it can be of any network you need not have the mother but the responsibility lies with the team that is managing this application okay so now we understand the flow we understand the components the role that each component is playing very very 15 beats or other other than that anything else from anyone if you are not able to understand please let me know i can just repeat with another analogy that you are able to understand in case if you are not understanding please give a thumbs down okay so is there any thumbs down just give a minute for you guys to okay can you explain the cache okay

now let me go back to the presentation let me be in this example only so there are two questions i see in the chat one is about control unit and another one is about the cache so now we know up to memory where the data comes in now memory will have only diverted sorry classified as per the program so in the program we would have defined the variables we will say that these variables are integers and whatever user input is going to be there these variables are going to store the data in the memory now when it is storing here in the program we would have defined an another variable called r3 where we are going to store the result from the operation that addition is happening so we would have defined the three variables so for each variable the memory is going to define that in the memory now another line in the program would have been written saying that i'm not going to assume what is the value of the variable but

i'm going to ask the user to input a line would be asking the user to input the data and the first integer second integer at 10 and 25 and these values are getting assigned to these variables now the third variable result at this point of time is going to be having the initialized value maybe zero now where am I going to process this 10 plus 25 and that operation is going to happen into the CPU and control unit so the control unit is job is basically to fetch decode execute and control signals it is not going to carry the data let me make it very clear control unit has no relationship to the data that is getting processed control unit is just going to control the cpu and which component is going to do what and upon its signal only the individual components of the cpu is going to perform for example it has fetched the data now it will ask register to store probably the variable x is equal to 10 variable y is equal to 25 so the x would be in r1

what is this r1 r1 is a storage within the register a small storage that is the reason the storage inside the tpu are very small now these registers are going to post it variable now this has to be processed for the addition which is going to process for the addition the alu all these are executional units alu will process it because this instruction is all about addition So it will go to the ALU, and the ALU will process the data, 10 plus 25. And it knows that the value is 35. So now it is supposed to go to the registrar. The registrar has the third variable, wherein R3 will have the result that is 35. Now it is available in the registry. It is available in the register. It is available in the CPU. It is supposed to go back to the RAM or go back to the hard disk. that the result is either stored in the memory or in the hard disk. Otherwise, if you are reinitializing the CPU for another circle, and if CPU is not providing this result to the memory,

then the memory will not have the value, but it will not miss. So now the variable processing is done. Value is noted. Now this value for R3 needs to be given back to the end user. How it will go? It will go via the IO. it will go to the screen and it will display the addition is 35 what are message you would like to hear you can also write the last statements according to your wish because it may be required here on please do not mind doing that so coming back to our thing so now here we also have cache which is not shown here within the CPU but if I go back here it is you do have l1 cache l2 cache and l3 cache three types of cache cache is a temporary storage suppose if it is available in the cache and your program is running again for the value of 10 plus 25 it knows that this is already processed so it will not process it will take the value from the cache and give it back to the user how is it going to give it back to the

user using the iowa controller wherein it will give it back to the screen where is screen attached to the screen is attached to the motherboard using one of the ports we have seen here now this is iowa controller which controls the keyboard and the mouse and it also controls the monitor monitor keyboard mouse and all will get connected you might have seen the usb 5 port or USB 2.0 port or some hard ports or something like PS2 to connect the keyboards and mouse, wired keyboards and wired mouse. So whichever is appropriate we should get it done. So now that is the role of this cache role is basically to keep it with itself unless this entire program is completed it will be available in the cache what will be available in the cache the result 35 the values of 15 sorry 10 and 25 that's not going to be available in the cache it will be available in the ram only taken directly from the so now in this scenario we have seen both where is it processing where

it is getting stored okay cool any other queries questions before we move ahead let me just check the chat i do see a couple of questions and there are a couple of hands up also so what is the role of l1 and l2 cache between ram and cpu registers okay before that let me see what is the role of flag okay where are you seeing the flag flags are updated here so now once the computation is completed result is available 35 and this result is going to this then this process has to be flagged with the status whether it has been completed or whether it got stuck whether it was not able to process or whether this needs to be carried on that status will be updated to the flag so this is basically for the operation that the cpu has completed there will be a flag because it has to communicate to the other devices that yes i have completed i'm going to post it again but if you're coming back i will not have it the result will be available in the cache

but the entire thing other things will be removed like r1 r2 r3 r3 will be in the cache other things will be removed from the memory once this particular instruction is completed like this In our program, you can have add, subtract, multiply, divide, mean, median, mode, whatever. Any processing. So this is how it works. So suppose if you have, there are three add, subtraction, and division you have added. There are three. So that means this will go through, each one will go through one cycle. What is that one cycle? One cycle is nothing but starting from the morning until the evening from our life perspective. It's the same thing for office also. Okay, cool. That's the role of the cache. What is the difference between cache and registers? Cache will hold only the results. The register is a temporary where it will hold the input given by the RAM through the control unit. and it will hold it until the operation is

completed. So once the operation is completed, R1 and R2 will be reinitialized and released for another process, but R3 will be cached to the cache. So that if somebody is going to ask about 20 plus 35, you can answer the 55. So that's pretty much what you can do. So whether you are getting hit or whether you are hitting, it's all because of so that's we know the flag okay role of l1 and l2 cache between ram and cpu okay i'm not sure where you are saying l1 l2 cache between ram and cpu let me go back here so here the l1 cache is going to carry the instruction that is the addition add 25 plus 10 and L1 cache is going to carry the data. R1 is equal to 25 and R2 is equal to 10. R3 is equal to question mark. This cache will carry. Where it will carry, it will carry and give it to the core. So the core is exactly the point where all these are getting performed. The core will give it back to L1 cache. Now the L2 cache is in the queue.

Why this design? because suppose while processing is happening if it is a multi-processing multi-cache then the way it works is a little different so that's the reason that compartmentalization has been done so that this is going to be the standard in architecture but it can also demand so now that is the role of cache between ram and cpu so now we mainly use intel processor to understanding the core architecture okay modem cpu architecture is looking like a microprocessor even system cpu is a microprocessor only thing is the size of that microprocessor may be smaller in a modem and the layout of the modem processor also will be very similar but what is getting processed by the modem processor is totally different. There it is data heavy and connection monitoring. So components are same, layout will be the same but the way it works will be a little different. Whether R1 and R2 and R3 are fixed, no, no, no, we will see that.

Hold on. It is only an example what I have shown. It's not like, okay, this is how it is getting fixed. No. Every memory have it, every CPU inside the registry will have its own address. And those addresses, we will see that soon. But R1 is a reference point. R2 is a reference point. Okay, cool. So now this result has come. The result is going to the R3. and the memory controller is going to give back the result to the memory and the result as of now is 0. It will get updated to 35. Once this is done, R1 will be released, R2 will be released, R3 will get cached. It will go into the L3 cache. Because L3 is, see, L1, L2, L3 also indicates the priority. so since it is going to cache it but it's not going to use it frequently until the system is going to ask again so that's going to the l3 cache the current processing will be in l1 and what is there in the queue will be in the l2 processed will go to the l3 so this is how it works so basically registers enable fast data access and are used to hold

input values and immediate results not stored results so what will be storing into the secondary storage and why are we storing in it secondary storage is nothing but our hard disk suppose in your program if you have written the instruction to calculate 10 plus 25 and then you are going to store it in your hard disk that time the result will be stored in the hard disk So let me give you an example where it is pretty much relevant. Now your application is running. Definitely there is something called an application log. Even the application log processing is also done with the CPU in the same manner. Now that is also an application which is storing the log. It could be a one line, one-and-a-half line, and it will store it. If you are not going to store the log in a device, then you will not be able to access it later, because memory is a temporary, and hard disk is a thing. So now if you are going to, if I'm going to restart my laptop, laptop also has the same

architecture. It is x86. So now, if I reboot, whatever is currently there in the memory will get vanished, but whatever is there in the hard disk will never get vanished until we say, please get lost by using the delete command. And secondary storage is basically for permanent storage. So is this program addition of two numbers? What is the role of the program counter? LL will come to that, we are going to see that in detail. So now this is the flow of a program. When it reaches the memory, it goes back to the CPU and comes back to the memory. Once it comes back to the memory, memory also will clear its data. The moment Krishna has suggested in the first session itself, It is available in the first day presentation. You can please refer Krishna. It is shared in the Moodle. And even the same books are referred in the syllabus. Okay. So now, this is the instruction. Add R1 and R2 and store in R3. Now, this is, while this is processing, there is another program which says that open the word file.

That is in the queue. So, in case if I am having four cores, then four instructions will run in parallel. And if the program is big, then the program might be using two cores. It may use four cores. If you are having 12 cores, a program can use 3 cores, 4 cores, whichever is available for the speed. But if I am having only one core CPU, then currently this adding of two integers is going on now. Only one CPU, so no parallel processing. So now open the word file is the next instruction. so the next instruction which is going to wait for execution will be in the program counter so now once this process is completed once all these registers cache everything is cleared the cpu is going to pick up the next instruction from the pc program counter so that program counter will have the next instruction which will get loaded in and then getting processed That's the role of program counter. Okay, cool. Now, if you look at from the overall understanding,

we have program in the CPU core from the register's perspective, not considering the other thing. From the register's perspective, we are going to have a program counter and we have an instruction register. These are all different types of registers that are available within the core. And you have general purpose registers. This IR is the current instruction that is being instigated and general purpose registers is basically to store currently you say add R1 and R2 and suppose you have R3, R3 will get into the general purpose register, and it will be there. Once the processing is done, it will go to the R3, and this instruction will come out of the IR. And then IR will pick up and say, open the world file. It's all going to happen in split of a microsecond. So that's the reason you are not seeing a delay whenever the processing is getting up. So how to decide which core of CPU execute the instruction and arithmetic

operations. I'm not going to go in depth because our objective is not to understand CPU in and out. But we need to understand how our requests are getting processed with the components that is available. So there is a methodology which is being used within the CPU that will decide which core is going to be occupied by what type of applications and how many cores are going to be allocated based on the availability of the course to the program. And from there, IR, how is it going to go to ALU? How it is? Everything will have its own way. So I'm not going to go in depth. I do see responses in the chat. Hope that helps. So we do have general purpose registers. we have instruction register which is current program counter is having the next instruction code in it and we also have memory address registers this holds the address in memory to be read from or written to for that particular execution so the location of the input data in memory and what is mdr or mbr it's basically the memory data

register it holds the data being transferred to or from the memory so these two are part of the memory controller and finally you have the flag status so it will have the status zero carry zero sign zero overflow zero if if it is overflowing not able to execute again the status will become overflow colon one it's basically zero and one that's it So based on this flag, the memory controller will decide whether to give back the result to the memory or not. The memory controller is within this CPU itself. Now this is from the CPU registers for adding process. This is the same thing it works for any other operations, but adding is something that I've taken an example. to show you this. Now, we have registers. Registers, we know it is a small storage available to the CPU for temporarily storing the values of variables that needs to be used for the processing. It's pretty quick. Pretty quick. So the swapping that is happening

or the data that is getting replaced is like in minutes. moment you know it gets done so now how does it look like in a storage perspective because registers are basically storages so now how does it compare to other storage the storage hierarchy the fastest is the register but it has the smallest capacity Of all the capacity, it would be only few bytes or few kilobytes, depending upon the core that you have. So each registry would be normally in bytes to kilobytes. And it holds operands, addresses, data, everything. Now the next level of registers is basically the cache that is still available within the CPU. cache will have more capacity compared to registers because cache is also going to store the information that is going to be so now next is cache cache is bigger but it is little slower compared to the registers now next level of the cache is basically the memory with this RAM random access memory so if you are

speaking about few kbs for registry and probably few mbs maximum for the cache then you will have ram in gbs that is how it is related and structured now if you have 32 gb ram then you have a storage which is probably a petabyte or a terabyte whatever is applicable so with these components understanding We'll be able to understand the real case scenario before getting there. Let us look at something else also. Storage hierarchy, we see registers, it is available in the CPU, the smallest but the fastest, among others. The reason that it is fastest, because that is what is the requirement by the CPU. It has to be the fastest possible. there are no two parameters that is going to define the fast access and slower access so suppose if your program is going to occupy more memory memory oriented program and if you have just left for the user to disconnect from the session then even after everything you might have to this is what is about the storage hierarchy but

i'm not going to pause i'm not going to stop sharing but what am i going to do is basically both alu and control unit work simultaneously why okay control unit are two and alu's are two different components within the cpu uh can it functions parallely yes simultaneously yes but it it is two different units what alu using it will just depend on the control unit for the input but it has nothing to do with a control unit beyond that so arithmetic operations are done in alu how of how other operations like running what do you mean by running any operation will be like even if you take the example of the file file can be opened it can be closed it can be deleted it can be modified all those are instructions that would change your that is how it works any queries, any questions until now neither thing, okay I do see a couple of concepts Priyanka I am opening your I am allowing your mic if there is anything please

you can unmute and ask okay good afternoon sir sir actually I have a doubt where is the syllabus for assignment whatever we cover that is for the assignment until today whatever we cover that will be for the assignment but I have not uploaded the assignment yet probably doing by Tuesday okay okay cool thank you So, now Uday, anything I am allowing your mic. Sir, hello, good afternoon, sir. Yeah, Uday. Sir, am I audible, sir? Yeah, you are pretty much. Go ahead. Sir, I understand the CPU process, how the executions will work. But it is similar for the GPU process also. does the same fashion GPU will execute the instruction okay there is the logic is little different but overall functioning is very similar the units are going to be little different because graphical processing it is all heavy it's not as simple as program instructions because most of the program instructions are going to be textual we might submit an object as a image or a video

but those are all values for the variable to be stored in the register but if you are going to handle image video for example if you're going to play a game then the communication needs to be faster both from the system and from the user and there might be a lag from the user but it has to balance it so all these things gpus are good at handling it so yeah at a very high level 30 000 feet the logic is same but in terms of components it is like that's like very very high end and the way it gives instruction and receives output also is little different so that it can balance what all we think is gpu is for high speed faster processing that is correct but it also has the ability to match with the speed of the end user and if there is no dependency with the end user for the processing then gpu will process immediately to its strength that's the difference between any other processor makes sense yeah yeah yeah yeah thanks so sir in others what's can can we say that a key uh gpu have a multiple

c kind of cpu to process the education fast and fast uh no no no you're confusing two different things uh all this course whatever it is we are is with the cpu not with the gpu so the cpu will not be used in the gpu processing it will be processed by the gpu and cpu will be ideal and it will be available for other processor that is coming for cpu non-gpu processes make sense are we good okay cool thanks thanks okay cool so now uh vikesh kumar i'm allowing your mic Hello sir. Good evening. Sir, yeah, so I had a question I think somebody has replied in the chat. I had a question around ALU unit. So when we do the arithmetic operation, that arithmetic operation gets executed in the ALU. But what about let's say I have some other instruction set apart from arithmetic operation, let's say there is some for loop or while loop so where exactly those instruction sets get executed okay all the instruction set is going to get executed with the core and core is going to take

the help of independent units which is going to process so your for loop okay you are looking from the programmer perspective okay but as as far as as far as system is concerned it for it every every iteration within the loop is a process so your addition so you are starting with zero for i is equal to zero between zero and 25 until it is not more than 25 which unit is going to process this it is alu you are increasing your loop value at the end of the loop that will go to the alu but within the program instruction also if you have values assigned and processing is done perfect so you you need to look that loop as if you are a system not as a programmer so within the loop if there are arithmetic it will go to arithmetic if there are other processes there are so many like arithmetic is very popular everyone tells that but there are so many deciding units that we will see that one by one later it will go to the

respective okay so even the far loop if there is an arithmetic calculation it goes to alu only Okay. Yes, please. Makes sense. Yeah. So I have a follow-up question. So there is something called assembly language. I think somebody has replied on my question. So where exactly this assembly language comes into picture? Is it a part of CPU or it's altogether a different component in the system or the machine? Hold on. I'll answer you, but we are going to see that. So there is a stage called fetch, the control unit. When it is fetching, it is going to fetch as an assembly language only. Sorry, it will fetch as a normal language, and the decode will change it to the assembly language. And that will be passed on to the unit. So control unit has four phases. which is basically which will fetch from the RAM decode is going to decode from our language to the machine language and then it will go further that will be fed into the ALU not your

line right yeah okay yeah I'll take two more questions uh yes Priyanka I think yeah I'm allowing your mic again yes actually i didn't i forgot to click on the raise again so i had one question sir for example we will have for assignment we'll have mcq objective types only right i think so that's a clarification i requested once i have it then only i'm going to prepare the assignment i would request you to confirm with your coordinator also I'm also waiting for that clarification okay Sunil I'm allowing you yes hello sir hello sir my question is with respect to I've also posted in the chat like with respect to the cloud or in the VPN when we are having everything is in the cloud there is no hardware physical hardware so how can there can be a difference between a RAM and a hard disk and how at all will it make a difference if we make a table buffered or not buffered because everything is in the cloud and processing

is also happening in the cloud so this physical I would say limitations that we had is it not kind of you know taken care in the cloud first and foremost thing even in the cloud only these type of servers are given to you okay the only only thing is they are using a virtualization software they are virtualizing the physical hardware into a virtual hardware and then they are giving it to you so when you are asking for ec2 instance with aws actually you are getting piece of hardware from a permital only so it will have all these properties it will have control unit it will have registers you will get the alu part of not the whole alu of the system if it is your own laptop then the entire alu is at your disposition but in case of vmware whatever you ask for you will get it if you say 8gb ram only 8gb ram you'll get it and along with that i need two cores you'll get two cores i understood that that part is fine i

I mean, I'll have a virtual machine with all everything, same to same, but then will our parameters still hold when we deal with performances and speed in terms of visibility? It is the same. See, the only thing is you are using, you are, it is something like you build a flat in a site and you got a flat, only that area you will be able to use for your residential purpose. you cannot enter into another flat but your overall site has a higher dimension probably it is like 2,400 square feet and your flat is only 460 square feet so the rest of 2,000 square feet is given to someone else they will use it but still all rules and everything is applicable the functionality is the same even your door also is going to open it also will have the lock only thing is it is just virtual it's not everything is not yours that's all everything else is same except for that aspect but like the turnaround time which is like physical movement of

you know instructions it's all going to be the same it is all going to be the same see if you see i'm just looking at only one instruction at this point of time but in the realistic world there will be millions of instructions that will get processed by the cpu so if you are going to have only two cores then the processor is going to take two minutes to process that million processes. If you are going to have four cores, then the million request will get processed probably in half a second. That's all is the difference. The time taken to process, but ability, capacity, capability, everything is same. Okay. Yeah, that's fine. Okay. Thank you. Okay. Somewhere I saw like okay someone asked is i3 and okay i think that has been answered by someone okay thank you very much for answering guys that's where we need to share the knowledge nobody can have everything and we don't have time for everything also thank you so much um let me take the question from sunil

yes sonal i think i i think i already i already asked then then you please lower your hands okay harshit i'll take this last okay we have only two that's fine i'll take both the questions so my question is i have a two question one is the how sdd work more faster than sdd and second like we are storing the data into the temporary cache memory is there a chance if we lost the temporary memory before giving the output to the cpu so it is creating uh its own backup or not no no no there are no backups okay the the uh what we have is very limited okay so memory itself if you take it how much memory do you have in your laptop 8 gb 16 gb 32 gb no so is it a possibility a casey lost uh it's on memory before uh display the output no that will not happen suppose your cash can become bad physically but it will not miss the process if you are like how your memory can go bad your cache also can go bad cpu also can go back the probability is one in probably one billion that's

all and how HDD work more faster than HDD okay that's that's too much of a depth to get in you need to understand the physical architecture of both types of hard disk at a very high level HDD is pretty old architecture and SSD is a new architecture and hdd depends upon the spin role and other things it will have a needle to access the part of the metal to retrieve the data so that that time is actually more compared to the ssd so at this i'm definitely going to be stopping there uh so rest i've given you how to find it out so can i ask the one question related to azure because uh topic is too much old uh but i have tried to ask uh but i did not get a chance so can i ask yeah yeah please go ahead uh so sir uh actually i'm working on the bm so i have seen uh we can create a multiple user for one big single vm so uh at a time uh both can both are accessing uh the bm at the same time so uh is there a chance like uh uh uh my question is like uh is there a chance uh the memo we are

sharing the same memory with uh two different users so uh what is the process here uh we are following like cpu we are we have a limited cpus and uh both one is using the parallely so what is the concept behind of uh this uh can i create a same uh same user session in our local desktop as well okay i think you have mixed two different concepts into one okay so here this is hardware and now user is a physical user so To identification, you are creating a user. Now, user is part of the operating system. And users can give instruction. I can run Microsoft Word. You can run Microsoft Excel. Now, both of us are giving request. The request is a little different. You are asking to open the Microsoft Word. You are typing and you are saving. I'm also opening the Excel sheet. I'm viewing it. closing it all these creates instruction to the cpu and yeah definitely in a laptop even though you have multiple users you can log in only as one user at a given point of time

so the resource is available for that particular user but if you are thinking from a server operating system perspective there the concept changes to multi-user multi-threading multi-processing so that capability is built in the operating system and not in the cpu so the operating system is going to drive how many processes will be processed by the cpu in parallel how it is going to be submitted so definitely if it is a server you will provide more resources not for course you might probably have 32 cores and that too you might have i7 generation so generation basically gives you an idea about how many instructions can be processed within a minute So, if I say i7, and if I can have seven i3 processors, is that the same? No. So, yeah, core is master chef and thread is assistant chefs, but this core and the thread is managed by the operating system and not by the control unit. The control unit will get that information from the operating system, and then it only

processes. Okay. It doesn't have any intelligence of, shall I take Sunil's request, shall I take G1's request. No, everything is in the queue. If it is a single user system, then everything is in the queue, one by one. Availability on the core, your request will be processed and you will get a response. And that is the reason sometimes you see that systems are a little slower because processor is busy. or hard disk may be full any one of the resources if they are beyond the threshold then it will slower the performance and most of the time it would be processes or storage these two hope I answered you Harshit are we good yes yes thank you good so the last question I'll take from G1 so as G1 what happens that yeah Actually, I work on VDI, okay? So before you answer that virtualization, everything remains the same. But I feel in my VDI, we have the same configuration, RAM, ROM, whatever. I have my local, okay? But still our VDI behaves slow.

So what is the case behind it? What is the reason behind it? If you're going to give me a scenario, then you need to give me all the information. A generic question, I will not be able to answer. but let's see uh see suppose i have my local correct i have a 60 gb ram but some hard disk this is a file system correct all those things but if i'm doing same structure on my video also if i i work on the video okay i generally see 9 video this is a ram this is the hard disk space and although this uh cpu is uh whatever i understand i understand so the same configuration if i'm getting as a virtual desktop yes i'm seeing that there is a performance difference it will be there right everything is in your local motherboard okay there in the vdi it is sitting somewhere else in one corner of the world so it depends on your network connection it depends on your bandwidth it depends on the stability because the data has to be transferred between

your laptop you only your network card is being used to nothing else your core is not being used the core is used from the virtualized desktop which is probably sitting in us east or london or singapore or mumbai wherever wherever it has been whichever region it has been hosted so it also requires data transfer from your physical device to that virtual desktop so there are so many so many parameters which can contribute to the lower performance but generally if you have a good connectivity you should not be able to see much difference yes slight difference will be there but you should not be able to feel much difference like how you are describing oh sorry my left broadband is 100 mpbs now in current project also i'm working vdi previous project also i have the vdi but same issue is there so i thought you told in the previous answer that only the virtualization difference is there otherwise everything

remains same then i thought why it is a performance flow all those things happening if everything remains same so due to that i i i i i told you very clearly not only the network connectivity whatever restrictions your network has put i can also process the processing also i can control in the virtualization you might think that you are getting two cores but do you know you are getting two cores of i5 or do you getting two cores of i7 in your local laptop you know that yes correct there are there are so many dependencies we just cannot compare straight like that, but if you do an analysis, we can get to know. You can get to know what of core you are getting and what generation and everything, but have you ever checked it till date? You might have not. Nobody does that. Nobody does that. So if you have to use it, you have to use it, you don't have a choice, so why do you get into this? That's what any user will think about it.

If it is slower, they will report it, and if you are an executive, you will get a faster virtual machine. But for normal users, they have to go with that only. So there are so many factors around that. And in the virtualization, I can also queue my queuing mechanism also within the same bare metal. I can define. If you are a normal user, power user, my operating system queue will get a preference than your queue. Because at the end of the day, if my bare metal is not running, you are not getting your desktop. so there are so many things but you can't compare one is apple and another one is orange but definitely if you want to know then you need to dive deep because it won't be the same yes yes Ganesh I'll take your I think you are waiting for some time I'll take your question good afternoon sir I'm audible you are pretty much thank you sir when we run a program inside virtual operating system using like software python or turbo c id how this program actually executed in stepwise

okay virtual virtual operating system means you have containerized yes yes okay so whether you running as a container, whether you are running as an on-prem, has no difference to the CPU. End of the day, it is going to get the instruction from the RAM, and RAM is not going to look at your operating system, whether it is on-prem or virtual. So the instruction is what is going to get into the RAM, and from there it will get assembled to the machine language, and further it goes. The purpose of running your software as a container is totally different. Suppose if your software fails, you do not want to reboot the entire server to bring the application again. You'll have to just restart the container, which is equivalent to the reboot of a server, so that only that application will get impacted. It is totally isolated environment given only for that particular application as a small system. So that concept is totally different, but end of the day, when it enters the hardware, everything enters the same way, whether it is a container, whether it is a application installed directly on your operating system, or whether your operating system is on-prem, or your server is bare metal, whichever may be the case.

Did I answer your query? Yes, thank you. Okay, cool. Cool, guys. So dissembler, not sure. Okay, Sankit. Okay, I read it wrong. Sankit, what is that you mean by I've done it for reverse engineering dissembler? I'm not sure. I'll allow your mic. I just want everyone else to hear you. What do you mean by that? uh sir regarding the cpu basically registers and everything that basically that you have discussed today right like i just wanted to like understand that it is the same thing right when basically let's say we have a dll or an exe file in windows like there are some softwares we run it we are able to get those ad num and all those things so it's it's basically that thing only right like the complete because any high level program that gets like converted like from a is when it gets compiled there is one machine language that's get like right and it is specific to each and every like is instruction set architecture right like for example i7 series

so right basically i'm just getting it i'm just understanding able to connect the dots correctly it's that thing only right so your dots are perfect but connecting the dots okay okay let me explain uh there are two types of programs right one is compiled program another one is instructional programs if you're writing a shell script it is instructional line by line it will get executed if you're writing a java program if you compile it it becomes a jar or war and then you host it so the war files and all is already has been decoded into the assembly language so When it enters the CPU, it just gets converted only to the machine language and it goes off. The DLLs are all compiled. It's already coded. It need not have to be decoded by the CPU, so it will definitely be faster. If you are writing a third-party application, something like this to add two numbers in a Python, and if you're not compiling that Python,

we can compile and we can also make it as an interpreter. So if you're going to run it as an interpreter, then it has to get decoded at two levels. One is from English to assembly and assembly to mission. But if you're going to compile that program, it is already, when you do the compilation, it is already decoded for assembly. So only one conversion needs to happen at the decode level, which is only from assembly to mission. so compiled programs the reason why it is running faster is this interpret program interpreted languages why it is a little slow is the reason is this there are two levels of coding that has to be done by the cpu before it gives to the unit to process your dots are all correct but Connecting the dots is what I just want. Yeah, please go ahead. Sir, one follow-up question here. At the very low level, when we speak at the CPU level, the instructions at architecture I have in basically the assembly code.

That assembly code, is there some conversion happens at low level also? Because computer only understands signals, right? So is there any low-level conversion happens after the assembly also? Assembly code, because my CPU is able to directly interpret it and work on it okay assembly is not binary just for the benefit of everyone i'm making this statement machine language is binary so even if it is enters the cpu as an assembly it has to be decoded to the machine language which is binary end of the day hardware understands whether on or off that's it so everything will get converted so for example anyhow we are going to see that down the line i'll just tell you get a system a configuration and it says that your cpu is 32-bit it will support 32-bit operating system that is what it says what does it mean so it can process up to 32-bit in a given go if your operating system can support 32-bit then the hardware can support 32-bit also now in this with this CPU if you are going to install

an operating system that operates at 16-bit then CPU will support only 16-bit it is underutilized suppose if you are going to install an operating system for example Linux operating system Debian Ubuntu Red Hat they all support 64-bit so if you install a 64-bit operating system and you have a 32-bit CPU, the processing is going to happen only for 32 bits though you have a 64-bit operating system. So what is this 32-bit? We will see that soon. Make sense? Yes, sir. Okay, just for the benefit, because for everybody, I just wanted to understand what you are trying to post and give clarification to everybody. Thank you so much, Sanket. appreciated okay so EX is assembly and it gets converted to mission that's right cool last question and after that we will take a break Krishna Chandra I am allowing your mic sir good evening very good evening sir my question is here anywhere in this particular example where you can recite the

cache memory exactly. Post the RAM or inside the CPU somewhere the cache memory will be utilized or not? For this example particularly I am asking. It will be the result whatever in this example the result it has given the result will go to cache and rest everything will be flushed. Okay only the result right? Yeah only the result will go to cache. cache memory is also very small yeah go ahead correct that's why I told for this example particularly but while we are providing any inputs okay so is there any role of the cache memory in case of huge inputs we are providing no no cache is something which is being stored after processing suppose if you are opening a Word file. Let me go away from this example. Suppose if you are going to open a Word file, it has some 3MB size. Now it is getting loaded into the RAM and now you are typing. Now there is a change from what it has opened and what the status has of it now. Now unless you give the instruction

to save, it won't save. But where is it? It is in the RAM. But when you give the instruction to save then the difference will go to cache why it goes to cache until you close the file it want to have what has changed and that is where if you look at sometimes if you're opening excel sheet or if you're opening the word document it says that we have something in cache which is not there in your file do you want to recover where is it coming from it is coming from the cache and if you say no I don't want I have everything in my document can I clear it you say yes it will clear the cache cache is for post processing not for pre processing okay sir thank you understood thank you sir great I was introduced to raspberry pi by my colleague is it in this case the same cpu setup or that's a different there is different okay cool guys so let us quickly take a break of five minutes it's 56 now I'm going to pause our recording at this

point of time once I'm back I'll start the recording in case if you find it is not started please feel free to put me in the chat so oh i'm not able to pass okay let it go uh i don't know one session is something different another session is different okay cool so let me stop sharing i will probably put for the indicator because it is getting recorded for the indicator i'll put for five minutes so we'll come back in five minutes take care guys yes prashant hi guys i'm mac i'm back we'll wait for another 30 seconds okay guys can you please give me a thumbs up so that i understand that you are also back p29 participants good to see guys i believe you also will understand that it'll be very difficult for me to give opportunity for everyone to talk in a small number of participants it's easy for me to do okay so in case if your query is being asked by someone else please help me by not not raising the hand okay cool thank you so much so let's proceed now we are getting we

have discussed this so i'll be going a little faster in this example if you look at it there is within the cpu core we have program counter this program counter is going to track what is the next instruction that needs to get executed so that there is no delay between the transfer of instruction from the component to component even within the CPU core. So IR is the current which is getting processes. General purpose is where all the variables are stored, the data is stored. Memory address register is basically it is holding the address of the memory, which is RAM. from where it has read from or to be written to. And MDR or MBR, that is memory data registered, it holds the data being transferred to or from to. So there is a difference. We'll speak about this pretty soon. And flag is basically to get the status of that particular instructional set. Once it is completed, then it will get transferred to the memory.

So the CPU gets the next transaction to complete. Storage hierarchy we discussed. Fastest access but smallest capacity are register. Register is inside the CPU. Cache is having a better capacity than register. You can say small capacity. It is just the difference between KBs and MBs. So it will have faster access, but slower than register. But it has higher capacity than register. Because whether it is L1 or L2, it is attached to the core for the processing. But L3 cache is basically the storage area for the CPU. and L3 is common to all the cores that is present in the CPU. So if you have 4 cores, this L3 will be shared by all the 4. If you have 12 cores, if you have 32 cores, it will be shared by all the cores, the L3 cache. The memory is going to have a bigger capacity. Probably it is denoted by GBs. 4gb 8gb 16 32 64 256 so it will have it is directly accessible by the cpu irrespective of the capacity of the ram it is directly accessible by the cpu

it's the main memory of the system larger in capacity but slower access compared to either cache or register. Now you have a secondary storage which can go up to petabytes. It can be made out of one hard disk or it could be by multiple hard disks or it could be LUNs. There is no limit. Which one? The secondary storage. But that is the slowest among these categories. When we are Speaking about the speed fastest and the slowest, the difference would be in microseconds, not more than that. But still, as we go down the hierarchy, capacity increases, but speed decreases. Now, executing an instruction. Register A to register B and put the result in the register C. How it happens. now the instruction from the control unit where will this control unit get it it will get it from the memory just now we understood memory is directly accessible by cpu so the control unit decodes the instruction it changes to the assembly your program will be converted into

add A, B, direction C. And it generates control signals to set up the data path. Now the control unit is the one which is going to give directions for rest of the units within the CPU. And it will have storage bins, which is registers. So now the control unit will, where is this data path available within the CPU, that is the connectivity which is available inside the cpu these are all individual units which is connected by the circuit so the circuit is the data path so the data has to be transferred from one unit to another for example if register has to give it to alu how will it give the instruction how will it give the data both only then the alu will be able to do the arithmetic and give the result and the circuit here is the data path it is part of your overall motherboard and generally it is referred as a bus so the architecture of the bus we are not getting into the depth but there is a difference in which architecture it is developed that also will have a correlation

to the speed that you are having so the generation what you see i for example x86 you see i3 i6 i7 that's basically the layout of the circuit so it will have a higher speed of the data transfer so it will be a little faster in processing so if you are having two i3 is definitely not equivalent to one i6 because the differentiation is in the layout of the circuit and it is not about adding so it is not simply like you have two hard disks my capacity has increased so i can store more data that is from the storage perspective but if you have two different hard disks one is hdd and another one is ssd one hard disk the ssd will perform faster compared to the the HDD. So, you might start using your data storage as SSD drive and not HDD. If at all, you are able to make the difference. Now, CPU data path is interconnected by the bus. Now, if register A has to go to the ALU, register B has to go to the ALU,

register C will not go to the ALU. Only A and B will go along with the operation. So two operands and one operation will go to the ALU. And the ALU will calculate all this input is in binary. It will not say decimal. A is equal to 10. No, it will not be. We will see how exactly this is getting transferred from one unit to another unit within the CPU. But for now, if we understand that all this transfer happens via binary only, and this will calculate and give the result. ALU will give the result. Actually, I should show it like this. It might confuse you. So I'm just showing to the right. This will give back to the register C. Now the register C is going to store. Basically, this and this is same. It's not two different registers. The communication is happening between this register and ALU. ALU is giving back to the register C. And register C will store it. Operation is complete. It will go to the memory first, who will give it to the memory, the control unit.

How it will get? Here there is an indication that it should be supposed to be stored as C. That C is nothing but a register C. All these will also have addresses. A, B, C is only for your understanding, I am putting it here. But all these registers also will have addresses within the CPU. Now, this address will match, control unit will give it to the RAM, and then it asks the CPU to flush, while it is flushing, registers will flush A and B, but move the C to the cache. Suppose if it is a bigger operation while coming only, then the control unit is going to tell registers to store, and if it is not able to store within the capacity of the register, then it will use the cache for storage. And which storage it will use? It will use the L3 cache, not L1 and L2. It will use the L3 cache to store and it will start swapping. It is very similar to your swap memory concept in the operating system level where you are using hard disk as a memory.

So here, cache is used as a memory. Cache is used as a register for the operation. That also moves the same way. So the control unit tells the data path. It will tell register on which data path it is supposed to transfer the data to the ALU. And ALU will be instructed on which path it has to give it back to whom. And that will go back to the control unit. Control unit knows everything what is happening within the CPU. Whether it is 4-core, 10-core, 12-core, control unit is going to be only one. L1 cache is for operations, it is not for storage. L1 cache is attached to every core. So suppose if you have four cores, there will be four L1 cache. And that L1 cache is also divided into two. One cache will have only instructions and another L1 cache will have only data. It is separated. So now, are you going to use L1D for storing your data to be processed? No, it is not. The design is L3 cache will be used as a storage.

And that's why it is common for all the cores. L1 and L2 is very specific to the core. So now we are getting introduced to the data path. Not just a register. there is a data path which connects all the units not only the ALU we have so many units available within the core like ALU all the units are connected using this bus and this bus is used for the data transfer and that direction is the data path okay this is how it will execute the instruction fair enough This is how it looks like. Now the control unit is only one, irrespective of how many cores you have and how many data paths you have. It doesn't matter. Control unit is only one. It just controls the signals, nothing. It will not even know what is A, what is B. It will just say, oh, A, B, you transfer, you get it done. Have you done it? Yes, I have done it. That's all. It is not going to verify whether it has calculated correctly. No job of that to the control unit.

Suppose if you are going to assume that the CPU is one toll. Now, there will be a control unit for the toll, which will be away from the toll itself. And that will monitor all the lanes. The lanes are nothing but your data bus, which is going to use that bus to transfer the data, all. Any car that is coming, cars are variables, nothing but your registers. So, if register A is sent in lane 1, that is one data bus, doesn't mean that register B also is going to go that lane only. End of the day, it has to be transferred to the ALU. So it can take two different lanes to reach. That's why we are making it faster. And ALU will give it back to register. See, it might be in another data bus it will use. But which data bus to be used is controlled by the control unit. So don't please ask me, driver chooses the lane and not the toll booth manager. I understand that. But just for our understanding, I told. So even if the driver uses the lane,

unless he pays the toll, control unit will not allow the car to go away from it. Unless the operation is completed, it will not be allowed to travel further. That's all I'm just trying to make you understand. So control unit is only one. Whether you have 12 core, 32 core, it is only. Whether you have 16-bit, whether you have 32-bit, control unit is only 1 for the entire CPU. Okay, cool. Now, how is this instruction being sent? Because CPU understands only binary. Even if you say add R1, R2, Aromark R2, R3, it has nothing to do with that. It will give back so i think you were working in some other tool you are sending that signal to me i can't process it so it has to give it in the mission language so how is that structured the instruction this is where exactly this 32-bit and 64-bit and 16-bit comes into the picture now 16-bit no no more it is relevant everything that comes is with a minimum of 32-bit and you will get 64-bit

capability also but even now the most popular is the 32-bit instruction format even if your operating system is a 64-bit operating system it converts the instruction into 32-bit only So now this is broken up, this 32-bit is broken up as operations code, that is opcode, your register, and it doesn't mean that every instruction should get a 32-bit. Some of them can be done with 16-bits. So you will have unused. You will have unused, but that's okay. Core understands, ALU understands, register understands. So this is the instruction code that will go. So now, what is the upcode? Upcode is nothing but your ADD. Every operational code has its own binary equivalent. So it will get converted into binary and it will occupy from 26 to 31. Why 31? Because it starts with 0. So how many bits you have? You have 6 bits for your operations. In this instruction code structure, the operations is going to occupy only 6 bits.

Then you will have registers. So registers, every register it is going to be 5 bits. 21 to 25, 16 to 20, and if you don't have two, if you have only one, then one, rest everything is unused. Later, if it is a 64-bit operating system, all these unused will be used by the operating system, but not by the control unit. So this is how it is going to go. When your register receives, it is going to receive in this format not the one which is there on the top when it is given back to the control unit then it is going to convert back to assembly and then it will give it to memory so that decoding is happening at control unit level so in this example if you look at it the assembled instruction binary representation will look something like this. This is opcode which is add this is R1 this is R2 and this is R3 rest everything is unused because it doesn't require more than that. What if it requires more than that? No operations will require more than 32 bits

that is how the entire system is designed. If you want to, some of the operations doesn't require that may be the case but There is no case that it requires more than 32-bit. So this instruction tells the CPU what to do in the first six bits, which registers to use the next respective 55 bits. And if you give like A square plus B square plus C square is equal to, if you are going to send that instruction as a format, sorry instruction as a transaction then the instruction is going to get split within this 32 gate you have three a b and c now the opcode opcode has require addition so these two this will get split into multiple instructions by the control unit everything will get processed and come and it will assemble and give it to RAM. That is why you have generation of languages. How the language instruction is getting converted to the CPU, based on that, your generation of languages is there. Is that the only reason for generation of languages?

No. This is one of those trial reasons that it is something like that. No, trial is something that odd random number I chose. There are more reasons for generations of languages. for example you have oops concept coming into java and python but it was not there before that is another reason so your instructions becoming more english in your higher generation languages as you move up in the hierarchy of languages of generation sorry generation of languages higher the generation more of english now the assembly language is this this is how control unit understands. So when this operations is confirmed, this is like it is going to have 00010. Now this will get converted into this language. So R3, R1, and R2, upcode is add. And this is the instruction memory has given it to the control unit. So it will give back to the control unit where you have R3, the result is available now your program is going to pick up the r3 and display on the screen

so that transactions is totally different how is it happening from memory to program to output device that mechanism is totally different but our focus is only cpu today so we are looking at it so yes rohit you have raised your hand any questions do you have yes sir so i have the question regarding uh regarding the format you have uh you have just uh so like you have uh like mentioned the specific positions of the off code uh the various registers that we have so they they like uh are the fixed positions or they juggle up like uh they would uh change or that they are fixed okay so i think this will answer the another question from Sashank also so generally the output will be the first that is for sure in this example also you have register C coming after the upcode and after that it is variables so now whether it is A first to B first it makes no difference look at the beauty of the design the operation happens there

and it is storing in the first. So now, in this machine code, this is our result. This will get assigned to the R3. Even in the machine language, sorry, from machine to assembly, R3 is here. In assembly, it will be add R1, R2, arrow mark R3. That is assembly. Now, R3 here is first because it has decoded from the machine code. and then it will rearrange the assembly language to that format and then it will give it to the RAM. Kobi, I answered your query, Rohit. Yes, sir. Sir, and one more thing I had regarding the cache, like we have three levels of cache and you said that for the L1, like we have assigned to each code and also the L2 is also assigned to each code. that you shared. So why do we have like two caches like they are actually assigned to each code like L1 as well as L2 and then we have another L3 that is shared. Okay. See the L2 cache size is high and the instruction comes it is going to sit in your program counter.

The program counter is going to move it to L2 cache and L1 cache is the current in. instruction in the instruction execution you require both instruction as well as data here it is both together it gets split into two when it gets into the core so core will pick up from l1 cache i cache from further instructions your opcode and it will pick up the data r1 and r2 that is why your r3 is always first instruction is the first data followed by the data and that's why it has two l1 caches so that it is faster i don't have to split it is somebody so you are sitting in a counter where you are accepting all the payments and if somebody in the queue they are helping you okay so you are going to pay by credit card okay go to counter number three if you go to the passport office you will understand this very clearly so you have come here okay you are allowed you can get into the passport office seva kendra now you have a counter a why counter it counter a because they

will verify your documents that is your l2 cache once your documents are verified they will split all the documents they will rearrange the documents in the order that the counter b requires So they will split the documents, they will rearrange the documents, they will staple it, they will put the form on the top, they will put the documents on the below and then they will give you go to the B counter. So now the L2 transfer to L1, when it transfers, it splits. Now when you go to the B counter, they know what to look for and documents are all arranged. Now it is still in the counter B, no approval yet, no processing yet. where the processing happens at the counter C. So when it goes to the counter C they will even remove all the documents that has been verified and satisfied. When you go to the counter C, only the required document you will take and go. If you have gone to the passport office and processed it recently, you would

have understood this process. Now in the C, it is like this. Two, three things has to be checked. They'll say okay process are reject now while in the B there is some document missing so you will be sent back you will not be allowed to go to the C now from the L1 it will not be picked up L2 will not give it to L1 so core is not going to do any processing at that level now L2 will give it back to RAM sorry L2 will give it back to the control unit and it will go back to the RAM. If something is not there, counter B will come. But next time if you have rearranged your instructions properly, if memory gives back to the control unit, the control unit is going to send it to L1 cache directly. Like you completed A counter, B counter you have been sent out to bring your other card original. When you come back in the next appointment you will not be asked to go to the counter A. You will directly go to the counter B. So the data

comes to the l1 cache because they have already split instruction the data cache the reason is the process needs to be faster for the end user here you are the end user applying for the passport renewal so you'll be asked to go to counter b directly not counter a if you pass through counter b counter c passport will be issued you are coming out of the queue same way it will go out That is the reason this L1 cache and L2 cache is very much attached to every core, it is not shared. Suppose if I put in L13 cache, let us assume core 3, then L13 cache is going to be processed only by the core 3, not by core 0. But if core 3 wanted to put back some storage, then it will not use its own cache, it will use the shared cache that is l3 so this l3 cache is shared by all the four cores make sense so can you please repeat the last part like the sharing part like how that uh sharing uh see core three core three has picked it from its own l1 cache okay now it is processing at a split of a millisecond

it sees that I want to store something basically swapping. That swapping will happen with L3 and this L3 cache is not only for core 3, it is for core 0, 1, 2, 3, for all these core 4s this only one L3 will be there and that will be shared by all the 4s. So core 3 when it is storing temporarily for that particular split of a segment it knows where is it storing and it will pick it back so L3 cache is shared but it will have huge capacity L2, if this is like KBs this is MBs, this will be bigger than L2 because it is shared with everyone if the CPU repeatedly yes please go ahead sorry to interrupt sir I understand that it might have to put some data back and then it's using the L3 cache. So, like, why it would not use L2? Because the L2 is an incoming cache. Okay. Incoming traffic, right? It also has two, right? It has to accept process and give it back. Okay, it's like one way and like here L2 is like only to receive the input from the RAM through the control.

Yeah, yeah. See, It is not received from RAM, control unit. Control unit is the one which is going to receive from RAM. Because RAM will have an assembly language. It needs to be converted to machine. Control unit will do that. So it will come to your program counter, and from program counter only, it will go to the instructional register. And when it comes to the instructional register, it enters L2 first. Go to L1. l2 will split instruction and we have 32 bit right the first six will go here and the rest 26 will go here and core knows what to do now instruction is in l1 data is in l l1 l1d as simple as that so if i'm going to write if core 2 is going to write back to l1 cache which one it is supposed to use is it l1i or l l1d so no confusions it will put it to l3 It will pick it up from L3, it will put it to L3, L3 will be giving it back to control unit. Output also is going to come to the L3 cache only, not L2 or L1 output.

Would there be a scenario that the L3 cache may be used within the cores, like if they are processing parallelly? like if yeah yeah yeah see all the four cores are going to work parallel no the first instruction goes to core zero second instruction will go to core one there is a request there is a question in the chat if the cpu repeatedly access a of i if i is not greater than 20 so that means 20 instructions. The 20 instructions will come into the program counter and from there it will be queued. First will go to core 0, second will go to core 1, third will go to core 2, fourth will go to core 4 and this cycle will follow and all the 20 will get completed. When it gets back to control unit, it will, it has to give only result, right? We are not going to give unless you ask within the program I want to see what is happening within the for loop it doesn't have to so that means for every instruction do you want to give me the

result or do you want me to give the result of the overall it is overall only one result will go back to the control unit and control unit unit will give it to ram in your for loop if you have said okay export this result then for every loop the result will go back to control unit and ram will receive so you will also receive so whether you use for loop whether you use if condition end of the day it will be made as instruction if you have a loop of three million instructions that is the reason in case of data engineering scenarios and all if you look at it the data that is getting you know transformed and then loaded before that it has to extract from the source, that is the process of data engineering. Aditya, that's too much. I don't have a motherboard, otherwise I would have done it. So, you asked a question. Yeah. Yeah, sir, maybe it's a very naive question, sir. The set of registers that you have shared,

like we have registered, three sets of registers, so that is fixed or like it would change? like in the you want to know how many types of registers are available no no I am just I am curious to know like the number oh you are speaking about R1, R2, R3 yes yes that numbers are fixed no no nothing like that if you have 10 variables then there are 10 registers ok here I have only 2 variables and 1 result so 3 registers ok Okay. Thank you, sir. That would go for myself. Thanks a lot. Cool. Thank you. Thank you, Varun. So, I guess you used your prompt. Answer is very clear. Shows that you have used the prompt. Okay. Cool. Thank you. So, now let us go back to our flight. So, categories. so that all this time we were just uh vikish kumar you have to okay yes vikish i have allowed your mic thank you uh sir i have a huge case uh since you mentioned about the data engineering so i am from data engineering background and i work as a big data engineer so we process a lot of

data so i have a huge case let's say i have a file of let's say 10 gb and i have given a cluster or let's say spark cluster having uh 10 cores so when we when we split the file and process the data then that data will go go to registers and as as you explain the registers has limited capacity it doesn't have much storage so how data processing happens over there will the data get spilled to cash or some some other storage or how how it happens okay since you have asked very specific let me answer you uh others if you are able to understand well and good if you are not able to understand still we are good so you say that you have a 10 gb of data uh what is the format of the data it could be an csv file yeah okay so it is a whether it is json or csv it is all robust so there is a value for every column in that row assume that you have seven columns now your program is just validating every row of data if the data is valid you will

push to some database if not you will correct it and then push to a different database for somebody else to look at it this is the logic of elt now you are looking at the data row wise record wise even if it is a no sql database it is still row wise except it is a columnar database everything is row wise so every row you will take now you have an instruction what is the instruction you have there are five fields to be checked is the date format in the right format do we have the name in the first capital rest everything small do i have the phone number in six digits these three i'm sorry the pin code is in six digits these three i'm checking for every row now every row is a data within that every row i have three instructions what are all those three instructions. One is if the data is correct, sorry, date is correct. Second is if the name is in the right format. And the third is whether the pin code

is six digits. So now every row will have three instructions. So now three instructions will go to the core but all the three are from the same row. So how is it getting reassembled? It is reassembled by your program. Not even by the operating system. So, operating system will break this into three instructions and give it to the control, to the memory, load it into the memory. When it loads into the memory, it will load only three instructions. It is not bothered about the other four columns, what you have. So, the first instruction is validation. So, date is first instruction, second is name, and the third is pin code. If any of these things goes wrong, it is just going to give the result that date is not in the right format. Once your program receives that input, there is an instruction for the program to move that record somewhere and delete it from this source file. So here there is no CPU involvement for calculation.

CPU involvement is only to move data. So again, moving that data, it will be split into seven instructions and it will get into the core. moving data, seven instructions and seven instructions can go into any of the cores. If it is parallel, if you have given ten cores, you have seven instructions, the instruction will happen in a split of a millisecond, data will be moved. And that is the reason you are seeing that almost a thousand records are processing within a minute. So this is how it works. And all your split is done by your spark not even by the operating system so basically uh my question is around so uh as i mentioned earlier so let's say i have a function and that function contains two data frame which is basically the chunk of the file okay and then we are joining these two data frame in order to produce the final result in data frame so when we will put these two data frame and when uh since this is in a function all the processing happening in a function that function will go

as an instruction set to the cpu and then we we have a chunk of data that's loaded in the memory so far it's in the memory it's not rich to register so when the execution when the execution will start the instruction set will go to the cpu and then the further depending on the number of partition it will get divided into into course so let's say if i have four course so four course will process four partitions parallelly right so okay so now now you are trying to combine hold on hold on you are trying to combine two different concepts your partition is a software partition okay you cannot partition the hardware if you want to partition the hardware then you will not you cannot use spark you have to use vmware or virtual box your spark cannot partition hardware so spark does only the software partition of your data and it identifies the instruction and data and gives it to the RAM RAM gives it to control unit

control unit differentiates that and put it into L1 data and L1 instruction so when you are giving it to the core it has to be split clearly between instruction and data so that is done by your Spark so if you are speaking about bifurcating the data or accumulating the data, that is done by your software, not by the hardware so instruction in that case will go to the cpu is not about uh you know making a single data frame the instruction will go is about moving the data there you are moving the data from one spark partition to another spark partition one data frame to another data frame so the instruction is not about copying it's about moving so we have different types of instructions to the cpu it's not only ALU there are so many units that is part of so the core is going without the help of these units core cannot work we will see that example exactly if you are still not convinced with the answer you can ask it again are we good

okay sir little doubt I still have little doubt so basically I was saying that let's say as you have given the example of adding two numbers so instead of two numbers i'm passing two data frame as an input and i have the function so that function and the data frame basically okay so within the data frame can you tell me what is there in your data frame is it an array it's uh it's a data it's a tableau data what is i agree but what format it is in it's in i mean it's a in memory of format it doesn't contains i mean it's a tableau format that's it okay basically hold on hold on the tabular format is called as metrics okay okay if you have only one row of data it is called as array if you have only one value it is a variable if it is a variable it is only one register if it is an array whatever is the size of the array is your number of registers if it is a metric you know how to product your metrics so many registers

it is not going to sit as a single data frame in your processor in your register it will get split and this split will be done by the control unit not by your spark when it goes back to the spark it will go as a metric makes sense yeah that's what i told you just wait we are going to cover that if we still have we can but anyhow no problem sure enough I still have Aditya you have raised so I'm going to lower over and be cash so that I will not get disturbed so allow mic for Aditya yes Aditya Aditya if you have any query you can unmute and ask ok thank you so now these are all the categories all these times what we have seen is this example add now these are all the only instruction categories that we have known a lot sorry I'll allow you and I'll take your quick question just be a little quick good evening sir so basically I have this question when you are showing the things like 32 bit instruction even if the operating system supports

64 bit underlying the hood it will be 32 bit so why is it basically only the 32 bit not uh comparatively to the operating system of 64 bit okay great question see the operating system is operating over the hardware and cpu's job is only to process operating system is not dealing only with cpu it has to deal with memory it has to deal with hard disk it has to deal with your Bluetooth it has to deal with your network interface card it has to deal with whatever you have in your system but CPU's job is only processing and this is one of the connect point to your operating system so it does not require 64 bit and most of the thing is being processed by CPU so 32-bit is sufficient. If you look at the communication of other interfaces, some of them are having only one bit, either zero or one. So it depends on the type of communication and the type of output what you are going to produce. That is how it works. So it has to deal with so many...

The moment CPU gives the result, it is supposed to give it to the screen. Where is the screen? screen is connected to the input output modular so it is supposed to give it to the iowa controller which will give operating system will give so that means it has to do more work than cpu so it has been provided with more instructional pixels yeah sir the other question would be like even if even in today's modern computer as well where we are supporting most of the operating system are of 64 bit and as we know the hardware has also been upgraded and it is more efficient nowadays even in today's scenario it is the cpus are of 32 bit yeah that is right when you get operating system 128 bit then probably we'll think about making cpu 64. okay so so basically if that means uh the instruction uh the instruction length would be of 32 bit right for the uh that is received by the cpu that is right and so there is another one very small doubt regarding this cache thing uh which i'm not able

to i know i have some references but i'm not able to get the clear picture like l1 cache l2 cache and l3 cache because as far as i uh understood properly it is like any uh any instruction that has been given by the control signal it would be like going to the registered only if there are no spaces left in the register then the cache will be used i is that the right so okay if that is the case then why l1 cache is split into two yes that is what i'm asking is it directly going to register or is it something we are using like it'll go okay hold on hold on from register to cache to four register is only a temporary storage like your ram okay cool but sir i'm i'm actually i'm not able to connect the dots regarding that register cache because from memory to register or cache it is clear how is it transferring from secondary to primary memory and from primary memory to like this thing from register cache

these are confusing a bit i'm confused because sometimes as you said in the one of the thing like if any core is processing and register doesn't have enough spaces we'll be sorry just hold on are you in front of your screen yes sir okay now are you able to see the key components of cpu yes sir where is your register registers are with under the course Where is your cache? Cache is with like below core 2 and core 3 you have L1 cache and L1 cache. It is outside of the core? Yes. So now where will core get the instruction from? Okay, it will get the instruction from cache. Is it clear? Okay, so yeah, it's clear. that's great thank you thank you sir hi so aditya you have raised again so do you want me to give you an access because the last time you said you're good and you lowered your hand so yes quickly aditya yeah i have little doubt related to like this os related things you will go through cpu side only like gpu related like if we some transfer forming over gpu so if something hardware

related access or something it will come it will go via cpu to os or how it will be like this is cpu okay as the second part of this course we are going to look at the operating system functionality also definitely i will address it in detail there but for your understanding cpu is a different component and gpu is a different component whatever is getting processed in the gpu need not be processed by the cpu because the cpu is slower and we require a higher processing capability we get a component called gpu so now which instruction goes to cpu which instruction goes to gpu is clear to the control unit so accordingly it will send to either cpu or gpu and the return path is also through that only your gaming application will go through gpu only it doesn't require cpu and gpu is an another form of cpu with a higher capacity and ability are we good okay so like os does all the scheduling so like gpu like the it can

schedule over gpu over also directly something yeah yeah yeah see okay you want to know the sequence of it we will see that in the operating system definitely we'll do that because if I get there then we will lose more time okay we'll see two hands up okay fine thank you Gyan has put through that can go through Fine. So now, the categories of instructions. Asunil, I'll come back to you. We have categories of instructions. One of the categories is what we were discussing until now, that is addition. So this comes under arithmetic and logic. So that means there are more categories available, yes. The categories is not only about ALU. There are categories for data transfer. There are categories for control flow. you can use conditions and there is machine control you want to haul to the CPU you can do that CPU won't process anything more so these are all the instruction categories that is frequently used is something that I have

put across, again it doesn't mean that only these many categories are these many instructions each category will have at least another half a dozen instructions so for example data transfer, load Load means what? You are asking to open the Word document. So the first thing is it has to load it into the memory. Where is that instruction? Even if it has to be loaded to the memory, it will be processed by the CPU and then it will be available into the memory. So that's why CPU and memory have a direct access to each other. So that time, the instruction, the first six digits, will have LW wherein the binary opcode is 1 0 0 0 0 1 1 but if you want to move, code is different if you want an addition, there are two codes in that, let us focus only on opcode, it's full 0, that is why in our example if you look at it, all the codes are 0 this is the most frequently used coming up, if you are using excel you know like you'll be using 10 times summing up probably two times difference that's

why it is on top now you also can do a bitwise now control flow jump you have cues in the program counter you wanted to prioritize you can give jump that is true a program with millions of lines of code is never sent to the cpu all at once only one instruction per cpu if you really want to understand how that code works you need to understand three more layers your code is in the application layer the code will be compiled by an another application the compiled code is going to run in an operating system the operating system first needs to understand what it is then it will do its own splitting and give it to the control unit and control unit is going to give only instruction if you have i'm not sure who is going to write millions of lines of code in today's world where we are speaking about microservices and contents and in one of the largest project that I have worked in my career for a micro service,

we did not have more than 8,000 lines. That was the standard we maintained because we wanted to have the end user experience the highest for that bank. And their transactions, they were transacting at least 8,000 transactions per millisecond. So if I have to do that, I cannot have the code running so long. so millions of lines of code is not the way we write code today 8000 10,000 lines if you get then definitely the architect is going to come and look back at your code or he will look back at the architecture okay cool so guys we discussed yesterday i think you should start using prompts that will give you a better answer than me also. Okay, so we have different categories of instructions and each category of instruction has different code. So based on the code, only it is going to decide which unit it is going to use. And that is the reason the instruction goes to the CPU core first. And from there, it is using all other units

that is available within the CPU. tpu is not a single unit it is made of multiple units it's just the architectural difference xh6 is your intel so mips probably you can you can at a very high level say macintosh and we also have risk cyscs all those things um when you are we will speak about it when we are speaking about it in the next session but at this point of time you understand that there are two different is what is isa we saw it in the last session so the reference isa is xxxx so definitely we will understand that more so here if we are good with there are different types of categories and each category has its own list of instructions that can go to the cpu core and based on the category based on the instruction it will decide to which it is targeting which hardware block it is targeting and i just given the sample codes for you to understand and it would be better if you try to expand this table

to the whole table and see what you are able to make it out. And I'm telling you, this is very interesting, but from our perspective, we just need to understand the flow. Unless you are a system administrator or a system architect, you need not have to go beyond this level. Okay, perfect. Now this is the four-phase instructional cycle. For this program, there are four phases that it is going to go through. One is the fetch. This is from RAM to IR. So, the address of the next instruction is in the PS. How it works? Current is IR. The next is in PC. The instruction is read from the memory and loaded into the IR. The PC is incremented to point PC will not have the instruction. PC will have the location where the next instruction is there. So the communication is between only RAM and IR. But IR will get to know which part of RAM I need to read to get my next instruction. That is how it works. So hardware, program counter for the next instruction,

it also communicates with MAR MDR. and IR is the fetch process. IR will run the current process. Decode is the second. That is done by the control unit. It splits. Read R1, read R2, select ALU, that is add. So the verb that it is using, ADD, will get converted into binary of six zeros. That it decides where it goes. It will go to ALU. If Control unit wants to use ALU, it will give. There are set of commands that goes to ALU. SUB is also subtraction, it will go to ALU. So you can get the list. You can get the list from every depth for all the categories. And you can see that. And execute is the execute phase. if you look at it execution is not happening in the control unit it is not happening in the IR registers it is actually happening in the units that the core has here in this example the actual execution is happening with the arithmetic and logical unit and that execution only will give you the result and if you look at how it works

the result is sent to the destination register that is R3 via the internal buses. So, IR is only holding the instruction that is currently getting processed. It is not processing anything. And right back, the result has to be given, right? So, this is the four-phase it follows. In the right back, basically the ALU is returned back to the destination register and CPU is now ready to fetch the next instruction. The moment result goes, CPU is cleared, that particular core, it is ready to fetch. So if you have million lines of code, let me take this example only. That million lines of code will be split into 10 million instructions and 10 million instructions will be put into the queue. Now, the queue will be in the RAM and CPU will process one by one. So how much time it is going to process a 10 million request depends on how many cores you have, what is the capacity of the core. But instruction is going to be 32-bit only.

And how fast it does depends on the generation of your processor also. So, but it will go through these four phases. generally when it enters control unit it is instruction wise you write a program for adding two integers it will get split into at least three instructions minimum minimum three instructions it will it has to transfer the data it has to calculate the data it has to give back that's how it works so this instruction cycle repeats for every instruction in a program if your program has 30 million instructions then 30 million instructions will be in the queue to get processed so probably you might get the result after 3 minutes that is where you see the performance ok cool so this is the real world scenario I have given 2 scenarios one is calculator i've given the entire process how it gets the calculator is a program basically adding two numbers in calculator it's not about only two numbers you can add three numbers it

can add five numbers now this is how it gets translated into the calculator program this program gets here you see load r1 that is the first instruction i told you minimum three but in this case if you look at it there are five assume that we want to store it in a hard disk 10 instructions will increase all you said is 25 plus 30 is equal to but how many instruction is going. You are not storing anywhere. How many instructions? Five instructions. These five instructions will go into registers one by one. Then it will get done. CPU registers will receive. Give it to RAM. It will get displayed. Tuck, tuck, tuck, tuck, tuck. It will process. And you can see how many instructions are going for one A plus B. And I have also given another scenario. ATM withdrawal. how does the cpu do it yeah if you are pretty much aware of coding yes we can do and all this multi-threading and all is done only by the program it is not designed in hardware it's a

design of a software okay so this is the scenario so all i want you to do is i want you to build this scenario like this. We are going to meet next week. And if you can make this split for this scenario, then you have understood the subject. Don't worry about whether it is right or wrong. What is important is whether you are able to place the right thing on the right stuff. The scenario is ATM withdrawal. How does the CPU do it? At the end of the day, everything is an instruction done by the cpu within this atm machine there is a cpu it does all the calculation and sends only the information over the network to the server server is not doing any calculations within the atm so that's why if the connectivity is not there you are not able to withdraw because it is not authorized to it is authorized only to process it is not authorized to dispense so result it cannot give to you, it can give only to the server so

this is the scenario and this is what is an assignment for you but today it has nothing to do with assignment 1 so if you can make this then you are good for all the topics that we have covered until today I need to check I have not gone through the whole stuff it should be there I think if you are referring to the pattern recognition that's fine so I understand you will have other classes as well, perfectly fine you can log off if you don't have any questions if you have questions and don't have a class again, I will be available for another couple of minutes, yes Aditya I am loving your mic Sir, one doubt I have, like these Intel different processors they released. Now they were telling something Intel G1 6400. So like these improvements they do by just increasing a number of cores or any specific task related they do. Like I am from telecom background. So they were telling something like RAN or telecom related things

like for those purposes this processor they will be releasing so like how it is related to this specific task these processors the processors are generally designed upgraded new comes only on their ability and capacity it has nothing to do whether it is for telecom or whether it is for finance or whether it is for Logistics are airports. Processors are processors. There are special processors available. Something like GPU. So it will have a different instructional set. It will have a different instructional pattern. But otherwise, processors are processors. It is all the same. Yeah, but like they were telling something, geon 640 like a rickson ujs these will be used by nokia like that they were a specific vendor they were naming so i was confused at that time how it is related with that uh which phone are you using i am using pixels google pixels what operating system it is running it is on android now that android os it is okay if i'm using a samsung what operating system it is using

Samsung is also Android only. iPhone it is on Mac. Okay. Is my operating system and your operating system same? No. For your Android phone it will be same. I am using Samsung. You are using... Then it will be same. No, it is not the same operating system. Because Samsung will customize. Android is open source. You are aware, right? Mm-hmm. So I will modify the code. I get the code, I will modify. The instructions that what I am giving, I can modify. Google can modify the Android. So how can it be the same? So the way the Google handles calls, the way the Samsung handle calls, it might be different. It may be same also. But like Android releases their version, something like C15, C16. So those updates, every mobile get and same update, everyone get. So it is related to... No, hold on. Getting a next Android version doesn't mean that Samsung has to upgrade. If they want to upgrade, they will upgrade. If they don't want, they will ignore.

When you receive an upgrade for the Samsung phone, you will receive the upgrade for Samsung from Samsung. For Samsung, from Samsung. You will not... Just because Android C17 is received, can you update that into your samsung phone will samsung allow yeah so basically what i am trying to say here is it is customized by the vendors so you have to use you have to use the vendor operating system see i don't have any clue about what you are talking about in the telecom but all i can tell you my understanding is the vendors might have customized it and they might have named it so if you can tell me what it is exactly i can do some research and tell you but i have also told you how to research so you can also get it done but to me it looks like it is customized and you can give any name no normal culture is our pro i can modify the android and i can say like any name only thing is i am not supposed to sell it i will give my own series

Samsung gives its own series right for its operating system and Google gives its own series for its operating system both doesn't match so to me it looks like so but if you want me to do some research you please give me information I can do some research and I can tell you what exactly is it or you can also try yourself I told you how to do that I will make some points like what points city will cover in this process next class i will ask no but you need to you need to give me the information so that i can do offline research before i can tell you something aditya i'm not the person i know everything in this world i can answer everything that is something nobody is so yes i have worked in telecom domain but i'm not a telecom expert are we good yeah okay guys thank you very much I will upload this and assignments also I will be uploading the assignment one and then we will basically meet next week and take it further thank you very much

