ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories >> Software
 
  HR-Questions (196)
 


 

Back to Questions Page
 
Question
What is IPC? What are the various schemes available?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Inter Process Communication. IPC is used to pass information
between two or more processes.

Schemes are pipes, shared memory & semaphore.
 
0
Wizards
 
 
Answer
Below are the different IPC methods

1. Semaphores
2. FIFO's (Also called Named Pipes)
3. Message Queues
4. Shared Memory
 
0
Prashanth
 
 
Answer
Following IPC mechanisms are available:-
1)Signal
2)Pipe
3)FIFO
4)System V's :- a)Semaphore b)Shared Memory c)Message Queue
5)Socket
 
0
Devesh Bissa
 
 
 
Question
How do you execute one program from within another?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
with the help of "exec" version.

look for man pages for more help
 
0
Wizard
 
 
Question
What is an advantage of executing a process in background?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
If a process is running in background then the same process 
will continue to run on the Unix server without any 
communication with the front console.
the console can be reused.
 
0
Jolly
 
 
Question
What Happens when you execute a command?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
When command is given then unix os will fork the shell i.e
will creat a new process and will execute the command using
exec command...something like suppose you gave command "ls"
in the shell then...
fork();
exec(ls);
It will give you the result and after this the child process
will die.
 
2
Amit
 
 
Question
What is a Daemon?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Daemon stands for Disk and Execution Monitor. A daemon is a 
long-running background process that answers requests for 
services.
 
0
Kesava Reddy
 
 
Answer
The processes like vhand, bdflush, sched are housed in 
kernel file or /unix system which are known as daemons. 
These files run  in the background without users 
request.These are created when the system boots up and 
remains active till it shut down or hang. These are not 
linked to any user or any terminal .We can't kill a daemon.
 
0
Kamakshee
 
 
Question
What are the process states in Unix?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
1.running
2.stop
3. zombie
 
0
Amit
 
 
Answer
and also orphan
 
0
Fgreregr
 
 
Answer
And
Sleep 
Suspended also....
 
0
Bikram Swain
 
 
Answer
we have only
1) Running(ready to run)
2) stopped 
3) suspended( sleep)
4) zombie
 
0
Vijay
 
 
Answer
1,user running,
2,kernel running,
3,ready to run in memory
4,ready to run in swap area
5,blocked, but process in memory
6,blocked, but process in swap area and
7,zombie
 
0
Ssathishmurugan
 
 
Question
What is a zombie?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
A system that has been taken over using Remote Control 
Software. Zombies are often used to send spam or to attack 
remote servers with an overwhelming amount of traffic (a 
Distributed Denial of Service Attack).
 
0
Kesava Reddy
 
 
Answer
A zombie process is child process whose parent has been 
killed and this child process is neither active nor dead. 
Hence the name zombie.
 
0
Sameer
 
 
Answer
Whenever process killed, then it makes a "zombie" state
entry in the process table. because parent process or init
process need status information of killed process, such as
how long time killed process running in kernel and user
process...
 
0
Dil Ka Don
 
 
Answer
A zombie process is one whose child process has terminated 
or get killed before its own termination.
 
0
Achal
 
 
Question
How can a parent and child process communicate?
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   TCS
I also faced this Question!!   © ALL Interview .com
Answer
Parent and child processes can communicate with unnamed pipe,
but the pipe should be created before creating the
child(i.e. forking).
After forking the process, child process inherits all
properties of parent, hence pipe also. This pipe can ce used
to communicate between parent and child process. But if one
wants to use exec(s), then this technique is not useful. The
user have to use named pipe or Message-Queue.



 
3
Yogesh Warad
 
 
Answer
An Application programming interface (API) is a source code 
interface that an operating system or library provides to 
support requests for services to be made of it by computer 
programs. Advanced programming interface is a near synonym 
with wider application that predates the current common 
usage. In the original term the concept is meant to 
represent any well defined interface between two separate 
programs. The main difference is that this older term does 
not inculcate a parent-child relationship and can therefore 
be applied to peer-to-peer situations more logically, e.g. 
internal kernel services which can present themselves as 
separate programs.
 
0
Sanjay
 
 
Question
How can you get or set an environment variable from a 
program?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
to get environment variable execute getenv();
to set environment variable execute setenv();
 
0
Amit
 
 
Question
What are the system calls used for process management?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
One of them is nice() to adjust the priority of the process.
 
0
Yogesh Warad
 
 
Answer
This should not allow to increase process priority.
 
0
Fwefkwl
 
 
Answer
fork() - to create a new process 
exec() - to execute a new program in a process
 wait() - to wait until a created process completes its 
execution 
exit() - to exit from a process execution 
getpid() - to get a process identifier of the current 
process
 
0
Shilpa
 
 
Question
Predict the output of the following program code
main()
{
 	fork();
printf("Hello World!");
}
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The output is 

Hello World!Hello World!
 
0
Guest
 
 
Answer
prints Hello world Hello world
 All the statements after the call to fork() will be 
executed twice
 
0
Shilpa
 
 
Question
Explain fork() system call?
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   IBM
I also faced this Question!!   © ALL Interview .com
Answer
fork() sytem call create child process to handle multi
processing activities, It inherites following fields from
parent.
environment variables, Filedescriptor, data part
I will think and write ...
 
3
Dil Ka Don
 
 
Answer
The 'fork()' call is used to create a new process from an 
existing process. The new process is called the child 
process, and the existing process is called the parent. We 
can tell which is which by checking the return value 
from 'fork()'
 
1
Shilpa
 
 
Answer
fork() system call are used in unix for making child process.
whenever parent procces call fork()system call it create
child process and copy the sorce code of parent process in
child process and return the p_id of child process and
creating child process return itself is zero.
 
0
Deep
 
 
Answer
fork() is the system call to creat the child process to the 
existing process.The child process copy the source code of 
the parent process and assaign new memory address.After 
fork call both parent and child executes the followed 
instruction.fork call returns the pid of child process to 
parent and returns 0 to child process.
 
0
Suresh Babu
 
 
Question
What are various IDs associated with a process?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Real User id, Effective User Id, saved user id.
Real Group id, Effective Group Id, saved Group id.
 
2
Dil Ka Don
 
 
Answer
PID- Process Id
PPID- Parent Process ID
 
1
Shilpa
 
 
Question
what about the initial process sequence while the system 
boots up?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
While booting, special process called the 'swapper' 
or 'scheduler' is created by the Process-ID 0. The swapper 
manages memory allocation for processes and influences CPU 
allocation. The swapper in turn creates 3 children: the 
process dispatcher, vhand, etc...
 
0
Shilpa
 
 
Question
How does the inode map to data block of a file?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Inode has 13 block addresses. The first 10 are direct block 
addresses of the first 10 data blocks in the file. The 11th 
address points to a one-level index block. The 12th address 
points to a two-level (double in-direction) index block. 
The 13th address points to three-level (triple in-
direction).
 
0
Shilpa
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com