is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
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.
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.
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.
Msg.Get and Msg.send() are IO bound in the problem statement. So we do not want Msg.Process to wait for a long time to start processing. We should be able to send messages quickly in order to keep Msg.Process. We need 1 thread for Msg.Get for sure and it should be enough as Msg.Get is very lightweight operation.
- m March 17, 2013So if there are n cores and 70% time goes in IO then 7 threads will be able to send 7 * (1-.7) = 2 messages will be sent per unit of time.
So we need 2 threads processors.
final answer is 7(msg.send) + 2(msg.process) + 1 (msg.get) = 10