Skip to main content

How computers works(how software works on computer)



1) Introduction to computers.


   A computer is nothing but a device that compute numbers.

So now let's talk about how this cool thing works.

2) parts of a computer and their main functions.


a] CPU (Central Processing Unit) -
    Do all the processing (Arithmetical and          logical operations).

b] RAM(Random Access Memory) -
    Stores important data that needed for
    execution of any program.

c] Storage devices (Hard Disk,SSD) -
    Stores date like (Operating System (O.S), Software's,  images, songs, videos, etc.)

d] Motherboard-
    You can think it as a PCB that helps to communicate with other devices like CPU,RAM, storage devices, graphics card etc to each other.

e] PSU(Power Supply Unit) -
    Provides power to all components.

Ok now you are familiar with the main components of a computer.

Computers do not understand any human language. Even they do not understand any programming language or assembly language directly. They only binary language.
                 If we compare binary to any human language. Every human language has lots of alphabet's like in English A,B,C etc but In binary it has only two alphabet's or numbers 0 and 1.

3) Let's start with the how computer boot.
    
First instruction needed to boot a computer are loaded in to the RAM then the specific parts of the O.S are loaded in the RAM. After all of that, processor send signal to RAM module and load the needed data process it and then our computer boots.

4) How application's runs on computer.

First important data from application is loaded in RAM. If the size of the application is larger than the available Memory (RAM) the remaining or less important data is stored in virtual Memory. After that processor takes data from RAM and then processor process the data and shows the result in our monitor.
      But application's does not works directly on hardware. First Operating system converts application in binary language so the hardware is able to run that application.

Now let's look at the binary.
  Binary is a language that hardware actually understands.
In decimal system we have no in range of 0-9 but in binary the numbers are only 0 and 1.

We can see the text on our computer that are actually not the text, the every alphabet are assigned by a number like A - 065. The numbers which assigns text, symbols are called ASCII code.

 





Comments

Popular posts from this blog

Apple is moving from Intel to ARM

       According to some rumours Apple is planning to use ARM chips instead of Intel in their Mac's. Apple plan to use their custom build ARM processors will be gadhe changer if everything goes well. Intel is facing difficulties in achieving their perfomance goal. If Apple's ARM processors outperforms Intel processors then it will great for Apple and their customers. By rumours it seems Apple 🍎 will launch their Mac's with ARM processors in fourth quarter of next year.  ARM processors generates less heat so it's easy to overclock, that will significantly boost their perfomance. Also ARM processors are very power efficient. Because of power efficiency of ARM processors we will notice increase in battery life of upcoming ARM based Mac's and MacBooks. If you don't know the difference between ARM and x86 then visit Difference between ARM and x86

How to install and use scrcpy on Linux?

In this article, you will learn how to install and use scrcpy on Linux. What is scrcpy? scrcpy is an application used to display and control the Android phone without installing any application on your android device and importantly it does not require any  root  access. Things you need to start using this application are listed below. 1) USB cable 2) Android phone with USB debugging on(Android 5.0 or above) 3) PC(Debian based os required) Installation sudo apt install scrcpy I prefer to use snap for installing scrcpy because snap store seems to have the latest package To install using snap use the following command snap install scrcpy Running scrcpy step 1) Plug an Android device(turn on USB debugging) using USB to your pc. step 2) open terminal and type scrcpy (or type scrcpy --help to see list of additional commands). If you want to know more about scrcpy click on the link below https://github.com/Genymobile/scrcpy Bonus:  You can also play games like among us using s...

how to use list data type in Python?

Where we can use Python 1) In web development using frameworks like Django and flask . ( Django has more features than flask but flask is good for lightweight web applications) 2) In data science and artificial intelligence.   (python has wide range of libraries and frameworks for data science and for artificial intelligence)     3)In Hacking   and in many other things Lists in python List is data   type  For complex programs we need to store and arrange large amount of data. For storing large amount of data we use lists, tuples and dictionary.  In this data type the values(data) are stored in the ordered sequence unlike dictionary.  Example of a list   -  Animal =  ['Tiger', 'Cat', 'Dog'] As you can able to see in above example, the list start and end with square brackets, [ ] We can store strings in a single or double quotes('string' or "string"). To separate the v...