Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,261 members, 7,954,001 topics. Date: Friday, 20 September 2024 at 10:39 AM |
Nairaland Forum / Science/Technology / Computers / In A Simplified Way,here Is How Computer Works (748 Views)
Education Is Now Simplified In School With Personal Education Application 4 Sch / How Computer Was In 1950s / Bulk Sms Simplified (2) (3) (4)
In A Simplified Way,here Is How Computer Works by DonaldGenes(m): 10:01pm On Sep 24, 2014 |
Mehn It's really complex but let me dumb it down a bit~Let us start right from the bottom here..I think it would be nice to share this Valuable piece from a guy.,I myself now understand this.. Lets roll...↗Quoted↖ Matter is composed of atoms (we can go smaller than this but this should be enough for this question) Atoms have electrons and flow of these electrons is defined as electricity Now, to make use of these electrons, we create transistors which can store/free electricity as needed. They are stored in units of 1 (5Volts) and 0 (0 Volts) An 8-bit number is then represented with 8 transistors. So 8-bit representation of the number 3 will be : 0000 0011. How is that achieved in hardware? Keep 8 transistors side-by-side (called registers and memory units). Make the first 6 transistors hold 0V and the next 2 transistors hold 5V Now, an organization of such registers and memory makes a cpu+ram To make it easy to compute using the CPU, we developed machine code. This language is what essentially runs on the CPU. What do I mean by "run"? It means, keep flipping bits. If I want to perform 2+3, in machine, I would store 2 in one register (register explained above) and 3 in another register. Then I would take these values to an Adder unit which would do a mathematical add (not the same as voltage addition) and give me the reply in another register. This is what a sample machine code would look like: 80 02 F3 80 03 F4 88 F3 F4 F5 Obviously, no one understood anything with this. So we came up with an ingenuous system to make it human readable. This is called assembly language. The following piece of code represents the above mentioned numbers: MOVI 2, REG A MOVI 3, REG B ADD REG A, REG B, REG C (add A and B and store in C) where MOVI = 80 REG A = F3 REG B = F4 REG C = F5 ADD = 88 Voila, our first coding language Now, assembly is too hard for humans to remember and code properly in. So they developed compilers that would convert a high level language like C to assembly language (remember, this assembly language does the actual flipping of bits) So, a C representation of the above mentioned assembly would be: { int a = 2; b = 3; c = a+b; } Just like people could write poems with English and not with hand signs, we realized that with an expressive language, people could write some better programs. Then compile it to assembly. Then that would flip bits in registers. Which in turn would affect transistors, which affect flow of electrons With the above found expressiveness, we wrote operating systems to maximize hardware usage, since it was seen that the CPU remained idle while we fetched data from disk Everything from your keyboard input to mouse to desktop to windows to sound is a program written in such expressive languages, running on top of the OS On the OS, we developed a network stack called TCP/IP. This stack provided a standardized methodology for computers to communicate with each other Once that was working and we managed to hook computers to each other using cables, we went on to create WWW and http. This allowed people from different networks to communicate with each other. Note that http is a protocol. Servers and Clients are programs that follow (at least) http in addition to internal protocols. Let's walk the other way, from software to electrons now When you type Nairaland.com on your browser and hit Enter key, an http request is sent from your browser (the client) to Nairaland (server) In your own computer, the browser is a program written in C/C++ This gets compiled to assembly (actually browser is already compiled, you're just giving input numbers to the compiled browser)
|
Re: In A Simplified Way,here Is How Computer Works by Keemy88(m): 10:04pm On Sep 24, 2014 |
I no get time to read essay abeg |
Re: In A Simplified Way,here Is How Computer Works by Nobody: 10:18pm On Sep 24, 2014 |
if this note is from you then You are good. thumbs up and if it's not thanks for sharing. |
Re: In A Simplified Way,here Is How Computer Works by okonja(m): 10:35pm On Sep 24, 2014 |
Good night, I'll read it tomorrow |
Re: In A Simplified Way,here Is How Computer Works by bigt2(m): 2:15am On Sep 25, 2014 |
This is not complete. |
Re: In A Simplified Way,here Is How Computer Works by DonaldGenes(m): 6:39am On Sep 25, 2014 |
bigt2: This is not complete.It is because I didn't wanna make it long just to keep it simple and concise for a good read |
Re: In A Simplified Way,here Is How Computer Works by DonaldGenes(m): 6:40am On Sep 25, 2014 |
penquin: if this note is from you then You are good. thumbs up and if it's not thanks for sharing. I edited some part though. Cheers |
Re: In A Simplified Way,here Is How Computer Works by roufy235(m): 7:18am On Sep 25, 2014 |
good one |
Re: In A Simplified Way,here Is How Computer Works by olempe(m): 11:48am On Sep 25, 2014 |
Keemy88: I no get time to read essay abegme too |
(1) (Reply)
College Dream Software Trainning Needed Anywhere In The Country / Laptop Ram Vendors In Portharcourt / Please Help! Micro SD Memory Card Not Readable
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13 |