Oracle Interview Question for Software Engineer / Developers






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

Child process does not terminate when the parent process is shut down
The child process is orphaned and a separate process called the init process becomes its parent.

Normally terminating a process: Calling return, exit
Abnormally : endprocess

- DashDash July 06, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

usually a process will be terminated when it is getting completed(normally).
but there are some more situatons inwhich the process moves to the exit state without completion
they are:
1.when the parent process of this process is terminated ,this child process will be forced to terminate irrespective of its status of execution.
2.whenever a hardware problem (like power failure, memory reset etc.) the termination of process can occur.
there are two more situations but i'm not very much clear.

- Raju July 06, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Normal Termination:
1) Normal program completion
2) By calling Abort(), exit()
Abnormal Termination:
1) Any signals like SIGSEGV, SIGABORT raised

A user process can terminate another user process by generating kill system call with signal numbers like 6, 11 etc.

- Win August 10, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I believe, there are several other signals which can terminate a process too.
Ex: SIGKILL, SIGSTOP - which can not be caught.
SIGINT etc - whose default action is to stop (i.e. if not handled).

But above post covers most of the things..

- Anonymous February 16, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Win: (In c language,) Abort() is for Abnormal Termination.

- Monish October 11, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

There are eight ways for a process to terminate. Normal termination occurs in five ways:

1. Return from main

2. Calling exit

3. Calling _exit or _Exit

4. Return of the last thread from its start routine

5. Calling pthread_exit from the last thread

Abnormal termination occurs in three ways:

6. Calling abort

7. Receipt of a signal

8. Response of the last thread to a cancellation request

- barjeshforyou October 25, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 votes

How the power cord will know which process to terminate?

- Anonymous August 18, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

lol..

- Anonymous March 04, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

lol....

- kiran May 15, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

ROFL . .

- LOL August 23, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

he he

- Anonymous February 29, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

excellent sence of humour

- ashish June 04, 2012 | Flag


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