Bloomberg LP Interview Question for Financial Software Developers


Country: United States
Interview Type: Phone Interview




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

There are a few cases
Some parents terminate their child processes
Else if the process continues execution such a process is called as orphan process

- Vaibhav May 10, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

good answer

- jbzhu05 May 12, 2012 | Flag
Comment hidden because of low score. Click to expand.
2
of 2 votes

To be more precise if a parent process dies before "wait()ing" for a child process then the child process becomes orphan and the init process(pid=1) becomes the parent.
Init process periodically "wait()s" for all its child processes to make sure they end up being defunct/zombie.

- BJ October 02, 2012 | Flag
Comment hidden because of low score. Click to expand.
9
of 9 vote

then child process will come under root process, which is generally called init..

- Raju B July 22, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Depends, for example in case of POSIX threads:
1. If there's no call to the function pthread_join(), then the child process terminates too when the parent terminates.
2. But if there is a call to the pthread_join() then the parent will wait for the child to terminate.

Also, in some cases, the child process might become orphan and the init process (PID 1) becomes its parent.

- Anonymous January 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

process is not thread please. but the last one is right

- qwei December 12, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

if the parent process ends before the child process then sometimes the parent process will terminate the child process forcibly...else these child processes are called orphan process..

- Aparna September 26, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Such type of processes are 'adopted' by 'root' or 'init' process in unix, i.e., their new parent process is 'root' process.

- deepu.0411 August 14, 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