Amazon Interview Question for Software Engineer / Developers






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

A deadlock..

- Teja February 03, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

it is in sleep (suspended) state.

- Anonymous February 15, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

one problem might be that unnecessary process switching will take place for this app.

- neo1234 February 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 2 vote

thread busy waiting

- newlifeseattle February 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

it should be in blocked state since busy waiting will involve cpu

- Anonymous February 03, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Just a wild guess..
Is the program waiting for an input from some other device or something like that :)

- game February 03, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

preempted by a higher priority process

- Anonymous February 06, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

may be for eg., its waiting on a conditional variable so it will go to sleep state..

- senthil March 08, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

the_stig is correct. Waiting on Input is a logical explanation . Try it to see it.

- becga March 11, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This is due to Paging and virtual memory, since the application is running constantly - pages and page tables will eat away memory and eventually the CPU utilization goes to zero.

- Anonymous July 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This is due to Paging and virtual memory, since the application is running constantly - pages and page tables will eat away memory and eventually the CPU utilization goes to zero.

- Anonymous July 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Resource conflict or Circular Hold and Wait

- Anonymous February 09, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

When you say CPU utilization goes down to zero, are you talk about CPU utilization for this process alone. What is the memory utilization for this process, is it constant, If yes, Then, It may be due to high priority process switching the context and
- May be in a deadlock.
- Waiting for I/O.

- Vikas Chourasiya December 01, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Thrashing or Deadlock !

- JD February 03, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

But doesnt thrashing lead to CPU usage since on a page fault the page would need to be brought into memory from disk.Hence CPU usage should not be 0.

- the_stig February 21, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

But doesnt thrashing lead to CPU usage since on a page fault the page would need to be brought into memory from disk.Hence CPU usage should not be 0.

- the_stig February 21, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

And could I/O or DMA be an answer?

- the_stig February 21, 2010 | Flag


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