Bloomberg LP Interview Question for Interns


Team: Financial Software Developer
Country: United States
Interview Type: Phone Interview




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

The obvious hint for this question is Concurrency. Both Single processor/shared memory hint that it is better to divide the tasks into multiple processes and let the OS try to execute them in parallel(single CPU will not let that happen). Depending on the tasks they might or might not execute in less than 8 hours.

- Abhi January 27, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

then take n processors, and divide all these n process of each processors, and execute them parallely, as they are independent jobs, so there wont be any shared data between them. ya but this require you to change your code, make it multi-threaded, but if it is then we don't have to do anything, we just need to add more processors, it would be better if we add n processors(for efficiency), but more or less is also fine.

- sonesh January 27, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Basically agree with @Abhi, but can do more about scheduler, like shortest job first, Multi-level Feedback Queue or Rotating Stair Deadline Scheduler, to run CPU-extensive and I/O-extensive tasks separately.

- orangetime23 May 18, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1) Use n different processor
2) Follow up 1 (single processor ): use different process
2) Follow up 2 (shared memory ) : use multiple threads within the same process .

- Mosaad November 05, 2014 | Flag Reply


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