Microsoft Interview Question

5th Round Q1 Code for the reader-writer problem in C++. Q2 Where are variables created by malloc and array stored. Q3 Given many processes, some are CPU bound and some are IO bound. How to have fairness in round robin , as CPU bound will get more slots. (Ans using multi-level feedback queue). Some questions on virtual paging. Last question, Where do you see yourself after 5 years and why do you want to join Microsoft.