|
INTERVIEW QUESTIONS
OPERATING SYSTEMS
UNIX
DETAILS
Question: 18. What is IPC? What are the various schemes available?
Answer: The term IPC (Inter-Process Communication) describes various ways by which different process running on some operating system communicate between each other. Various schemes available are as follows: Pipes: One-way communication scheme through which different process can communicate. The problem is that the two processes should have a common ancestor (parent-child relationship). However this problem was fixed with the introduction of named-pipes (FIFO).
Message Queues : Message queues can be used between related and unrelated processes running on a machine.
Shared Memory: This is the fastest of all IPC schemes. The memory to be shared is mapped into the address space of the processes (that are sharing). The speed achieved is attributed to the fact that there is no kernel involvement. But this scheme needs synchronization.
Various forms of synchronisation are mutexes, condition-variables, read-write locks, record-locks, and semaphores.
|
|
|
Category |
UNIX Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8199 users |
Added on |
9/3/2014 |
Views |
71785 |
Rate it! |
|
|
Question:
18. What is IPC? What are the various schemes available?
Answer:
The term IPC (Inter-Process Communication) describes various ways by which different process running on some operating system communicate between each other. Various schemes available are as follows: Pipes: One-way communication scheme through which different process can communicate. The problem is that the two processes should have a common ancestor (parent-child relationship). However this problem was fixed with the introduction of named-pipes (FIFO).
Message Queues : Message queues can be used between related and unrelated processes running on a machine.
Shared Memory: This is the fastest of all IPC schemes. The memory to be shared is mapped into the address space of the processes (that are sharing). The speed achieved is attributed to the fact that there is no kernel involvement. But this scheme needs synchronization.
Various forms of synchronisation are mutexes, condition-variables, read-write locks, record-locks, and semaphores.
Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
17. How do you execute one program from within another?
|
View Answer
|
|
What is an advantage of executing a process in background? The most common reason to put a process in the background is to allow you to do something else interactively without waiting for the process to complete. At the end of the command you add the special background symbol, &. This symbol tells your shell to execute the given command in the background. Example: cp *.* ../backup& (cp is for copy)
|
View Answer
|
|
How would you kill a process?
|
View Answer
|
|
What is 'ps' command for?
|
View Answer
|
|
What is a Daemon?
|
View Answer
|
|
What Happens when you execute a command?
|
View Answer
|
|
What is a shell?
|
View Answer
|
|
How does the inode map to data block of a file?
|
View Answer
|
|
Discuss the mount and unmount system calls
|
View Answer
|
|
How do you create special files like named pipes and device files?
|
View Answer
|
|
What is a FIFO?
|
View Answer
|
|
What are links and symbolic links in UNIX file system?
|
View Answer
|
|
How do you change File Access Permissions?
|
View Answer
|
|
What are the Unix system calls for I/O?
|
View Answer
|
|
Brief about the directory representation in UNIX
|
View Answer
|
|
What is 'inode'?
|
View Answer
|
|
How are devices represented in UNIX?
|
View Answer
|
|
How do we know how a particular session is scheduled?
|
View Answer
|
|
Explain the types of interrupts in detail?
|
View Answer
|
|
I need to write a command using redirection characters to output the number of unique users working on your system.
|
View Answer
|