Microsoft Interview Question for Software Engineer / Developers


Team: Global Foundation Services
Country: United States
Interview Type: Phone Interview




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

1)thread is part of process, . all the threads in a process contains same address space. As well as data segment,heap and stack segment as well . To processes communicate with each other using IPC such as shared memory, message queue,mail box,pipes,unnamed pipes and sockets,spinlocks,message passing. Where as threads shared same address space for the synchronisation purpose. Mutex and seamphores ,condition variables are used. Conetxt switch for process is little overhead to the operating system for threads it is having less overhead.
2) Deadlocks: consider two exampkes. when process p1 holds resource r1 and wants r2 where as process p2 holds resource r2 and wants r1 so both process are waiting for resouses this situation is called as deadlocks.
3)when when two or multiple processes updating the shared resource and result is dependon who runs presiesly this situation is called as race condition.

- Nikhil January 31, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

1)thread is part of process, . all the threads in a process contains same address space. As well as data segment,heap and stack segment as well . To processes communicate with each other using IPC such as shared memory, message queue,mail box,pipes,unnamed pipes and sockets,spinlocks,message passing. Where as threads shared same address space for the synchronisation purpose. Mutex and seamphores ,condition variables are used. Conetxt switch for process is little overhead to the operating system for threads it is having less overhead.
2) Deadlocks: consider two exampkes. when process p1 holds resource r1 and wants r2 where as process p2 holds resource r2 and wants r1 so both process are waiting for resouses this situation is called as deadlocks.
3)when when two or multiple processes updating the shared resource and result is dependon who runs presiesly this situation is called as race condition.

- Nikhil January 31, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

1)thread is part of process, . all the threads in a process contains same address space. As well as data segment,heap and stack segment as well . To processes communicate with each other using IPC such as shared memory, message queue,mail box,pipes,unnamed pipes and sockets,spinlocks,message passing. Where as threads shared same address space for the synchronisation purpose. Mutex and seamphores ,condition variables are used. Conetxt switch for process is little overhead to the operating system for threads it is having less overhead.
2) Deadlocks: consider two exampkes. when process p1 holds resource r1 and wants r2 where as process p2 holds resource r2 and wants r1 so both process are waiting for resouses this situation is called as deadlocks.
3)when when two or multiple processes updating the shared resource and result is dependon who runs presiesly this situation is called as race condition.

- Nikhil January 31, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.


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