Amazon Interview Question


Country: India




Comment hidden because of low score. Click to expand.
3
of 5 vote

For answering this question, first there is need to explain what does 32 in the 32-bit denotes.
32 denotes the size of main system bus( including memory bus, io bus etc. ). Its the number of bits that can be processed in parallel. It also denotes the size of registers of the CPU. (means register can process 32 bits per cycle)
So, the 32-bit OS is the os which uses all the 32 bits(all 32 bus line) that are provided by the cpu architecture.

Edit: some more explanation
the OS which is using all 32 bits, can address 2^^32 addresses, can process 32 bits of data per clock cycle. If we are having 64bit processor we can install 32bit os on it(though it would not use hardware optimally) but if we are having 32bit processor we cant install 64bit os on it.

- NaMo July 02, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

You've described a 32-bit architecture, not a 32-bit OS.

- Anonymous July 02, 2013 | Flag
Comment hidden because of low score. Click to expand.
3
of 3 vote

32-bit systems can address 4 GB of memory in one go (2^32), 64 bit can address 2^64 bits(16 exbibytes ). If a processor is 64 bit and you are running a 32 bit os, the os will run fine. the extra processing capacity of the processor will be unused. But a 64 bit processor will use all the processing power of the processor.

you cannot run a 64 bit os in a 32 bit processor.

Os all about using the computing capacity of the hardware.

- Prithvi July 03, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

You're a bit low on your addressable range there. You could address 128 GB with 37 bits (4GB *2^5). With 64 bits, the maximum addressable memory is 16 exbibytes (18446744073709.551616 GB).

- Anonymous July 03, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Thanks. I corrected the addressable range. Thanks

- Prithvi July 03, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

i liked the answer very much
its a complete answer
thank you

- anikakelhanka July 03, 2013 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

The terms 32-bit and 64-bit refer to the way a computer's processor handles information. If it is 64-bit version of Windows then it will be able to handle large amounts of random access memory (RAM) more effectively than a 32-bit system.

- Mukhtar Ahmed July 03, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

My 2 cents.

On a 32-bit machine, the OS can create virtual memory of up to 4GB. That would be the upper limit of address space of a process. On 64 bit machines, the virtual memory can be expanded to 2^64 and so is the address space of a process.

- Murali Mohan July 03, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Bit represents how much memory you can give to a particular process in 64-Bit we can allocate far more memory to particular process then 32-bit. For an instance JVM memory size which is max around 1.5 GB in 32-Bit but we can give far more in 64-bit that is in TBs.

- Md Husain July 03, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

32 bit and 64 bit OS refers to the number of address spaces that the operating system can access. A 64 bit OS will be able to access more address spaces, so can handle larger data.
If you have a 32 bit OS, any single application can access upto 2GB of space on RAM, which is not the case if you have a 64 bit OS.

- Harshit Shrivastava July 03, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More