NetApp Interview Question for Software Engineer / Developers






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

Isn't the PCB created when a process is started? Also, aren't you missing something more fundamental about the state of a process?

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

probably you want to say he is missing about process state transition.

process(thread) created -> waiting <---dispatcher--> running ---> terminated

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

Context Switch is storing the state & context of CPU so that execution can be resumed from from that point later .

Context Switch can be Thread Context Switch & Process Context switch .

Say Process-1 is being executed by the CPU . A context switch is initiated by creating a PCB for process 1 & storing all the vital details of Process in it
i.e :
1> Heap
2> Stack
3> Opened Files
4> Code segment
5> data segment

Then the process is interrupted .

Then process-2 PCB is loaded and executed by CPU .

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

PCB is created when the process is created initially.

- krshnsh February 14, 2013 | 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