Thursday, January 5, 2017

Basic understanding of Operating System Architecture

There are two types of operating system architecture available for Windows and Linux operating system. 32-bit and 64-bit operating system.

32 - bit Operating System

32-bit operating system measn it can process 32 bit of data in one CPU cycle. So if yo have a DUAL Core CPU with 2.0 GHz speed then it can process 119.21 GB per second.

CPU speed  2.0 GHz = 2000000000 Hz

CPU is Dual Core so frequency is doubled

2 X 2000000000 Hz = 4000000000 Hz

Operating system can process 32 bit per CPU cycle

4000000000 Hz X 32 bit = 128000000000 bit per second

128000000000 bit / 1073741824 bit = 119.21 GB


64 - bit Operating System

64-bit operating system means it can process 64 bit of data in one CPU cycle. So if yo have a DUAL Core CPU with 2.0 GHz speed then it can process 238.42 GB per second.

CPU speed 2.0 GHz = 2000000000 Hz

CPU is Dual Core so frequency is doubled

2 X 2000000000 Hz = 4000000000 Hz

Operating system can process 64 bit per CPU cycle

4000000000 Hz X 64 bit = 256000000000 bit per second

256000000000 bit / 1073741824 bit = 238.42 GB


Difference is clear. A 64 bit Operating System can process 2 times more than a 32 bit Operating System. Now the obvious question is why we need a 32 bit Operating System ? Answer is straight forward. 32 bit Operating System is old Operating system supported for old CPU where architecture is designed to process 32 bit per CPU cycle. Now a day CPUs are build on top of 64 bit architecture and it require a 64 bit operating system. In some cases it is possible to install a 32 bit operating system in a 64 bit CPU but in that case 32 bit is always idea or in other words that CPU will always run with only 50% load.

To know what operating system architecture is installed on your manchine type the following command in your command prompt. (Command prompt must run with administrator rights)


C:\>wmic os get osarchitecture

And you will get the result like this depends upon your operating system.

OSArchitecture
64-bit             

Alternatively you can go right click on "My Computer" => Go to "Properties" under system block you will find "System type". This is you operating system architecture.