Bloomberg LP Interview Question for Financial Software Developers






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

deadlock is where transaction A is waiting for transaction B; and transaction B is waiting on transaction A.

- Anonymous January 02, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Suppose you have 2 threads and infinite history of executions of instructions of 1 and 2 thread. In both threads there is a critical section. Consider the following algorithm:
loop forever
NCS()
want[id] <- 1
loop while (want[1 - id] == 1)
CS()
want[id] <- 0
end loop
// id is either 0 or 1
If there exists a possibility that this algorithm will never enter a critical section of any thread then it is in deadlock. It doesn't seem for the above algo that it may be in the deadlock but indeed it is possible :) It up to you to find why...

- Leon January 06, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

deadlock is a situation in synchronous processing , where two are more threads blocked for resources, which are locked by other threads.

- RK January 08, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

4 conditions for deadlock :
a) no pre-emption
b)mutually exclusive
c)hold and wait
d) circular hold and wait

- easy!! March 31, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

happens when there are 2 threads and each has a lock on a resource needed by other thread (circular hold)

- Anonymous June 23, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Deadlock is a condition where two or more processes are each waiting for another to release the resource or more then 2 processes waiting for resource in a circular chain.

- Vivek July 31, 2009 | 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