With neat diagram explain inter process communication model.

1 Answer

Answer :

Inter-process communication: Cooperating processes require an Interprocess communication (IPC) mechanism that will allow them to exchange data and information.

There are two models of IPC

1. Shared memory

image

In this, all processes who want to communicate with other processes can access a region of the memory residing in an address space of a process creating a shared memory segment.

All the processes using the shared memory segment should attach to the address space of the shared memory. All the processes can exchange information by reading and/or writing data in shared memory segment.

The form of data and location are determined by these processes who want to communicate with each other.

These processes are not under the control of the operating system.

The processes are also responsible for ensuring that they are not writing to the same location simultaneously.

After establishing shared memory segment, all accesses to the shared memory segment are treated as routine memory access and without assistance of kernel.

2. Message Passing

In this model, communication takes place by exchanging messages between cooperating processes.

It allows processes to communicate and synchronize their action without sharing the same address space.

It is particularly useful in a distributed environment when communication process may reside on a different computer connected by a network.

Communication requires sending and receiving messages through the kernel.

image

The processes that want to communicate with each other must have a communication link between them. Between each pair of processes exactly one communication link.

Related questions

Description : Describe I/O Burst and CPU Burst cycle with neat diagram.

Last Answer : CPU burst cycle: It is a time period when process is busy with CPU.  I/O burst cycle: It is a time period when process is busy in working with I/O resources. A process execution consists ... cycle and so on. The final CPU burst cycle ends with a system request to terminate execution.

Description : Draw process state diagram.

Last Answer : process state diagram

Description : Explain PCB with diagram.

Last Answer : Each process is represented as a process control block (PCB) in the operating system. It contains information associated with specific process. Process State: It indicates current state of a process. ... . Each PCB gives information about a particular process for which it is designed.

Description : Explain multithreading model in detail.

Last Answer : Many systems provide support for both user and kernel threads, resulting in different multithreading models. Following are three multithreading model: Many-to-One Model The many-to- ... True concurrency cannot be achieved. Multiple threads of kernel is an overhead for operating system

Description : List components of OS. Explain process management in detail.

Last Answer : List of System Components: 1. Process management 2. Main memory management 3. File management 4. I/O system management 5. Secondary storage management Process Management: The operating ... synchronization. 4. A mechanism for process communication. 5. A mechanism for deadlock handling.

Description : Enlist different file allocation methods? Explain contiguous allocation method in detail.

Last Answer : From the user's point of view, a file is an abstract data type. It can be created, opened, written, read, closed and deleted without any real concern for its implementation. The implementation of a ... a times is difficult to estimate. 4. Compaction may be required and it can be very expensive.

Description : Explain LRU page replacement algorithm for following reference string. 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1 Calculate the page fault.

Last Answer : LRU: The Least Recently Used (LRU) page replacement policy replaces the page that has not been used for the longest period of time. LRU replacement associates with each page the time of that page's last use. ... in question so assume frame size as 3 or 4) LRU: Assume frame size=3

Description : Enlist the operating system tools. Explain any two in detail.

Last Answer : Following are the operating tools: User Management Security policy Device Management Performance Monitor Task Scheduler A) User management: User management includes everything ... routing tables, interface statistics, masquerade connections, and multicast memberships. # netstat -tulpn

Description : Explain Round Robin algorithm with suitable example.

Last Answer : It is preemptive scheduling algorithm. A small unit of time known as a time quantum or time slice is used for pre-emption of a currently running process. Ready queue is implemented as a circular ... has received 1 time quantum, the CPU returns to process P1 for an additional time quantum. 

Description : Explain partitioning and its types.

Last Answer : An important operation of memory management is to bring programs into main memory for execution by the processor. Partitioning is a technique that divides a memory into multiple partitions. These partitions ... in memory. For example: Consider following table with process and memory space.

Description : Explain deadlock? What are necessary conditions for deadlock?

Last Answer : In multiprogramming environment, several processes may compete for a finite number of resources. A process requests resources and if the resources are not available then the process enters into the ... Each process is waiting for the resources held by other waiting processes in circular form.

Description : Enlist types of operating system. Explain multiprogramming OS in detail.

Last Answer : Types of operating system 1.Batch Systems 2.Multiprogramming 3.Multitasking 4.Time-Sharing Systems 5.Desktop Systems 6.Distributed system 7.Clustered system 8.Real Time system: Multiprogramming ... multiprogramming: user can open word, excel, access and other applications in a system.

Description : Explain any four scheduling criteria.

Last Answer : 1. CPU utilization: In multiprogramming the main objective is to keep CPU as busy as possible. CPU utilization can range from 0 to 100 percent. 2.Throughput: It is the number of processes ... fairly early and can continue computing new results while previous results are being output to the user.

Description : Explain any 4 services provided by OS.

Last Answer : 1.User Interface: All operating systems have a user interface that allows users to communicate with the system. Three types of user interfaces are available: a. Command line interface ( ... to system resources. Security is provided by user authentication such as password for accessing information.

Description : List any four features of open source operating system.

Last Answer : 1. Open Source: open source OS code is freely available and it is community based development project. Multiple team's works in collaboration to enhance the capability of operating system and it is ... issuing a command in Linux Terminal or Shell. Linux can also run Windows applications if needed.

Description : List free space management techniques? Describe any one in detail.

Last Answer : A file system is responsible to allocate the free blocks to the file therefore it has to keep track of all the free blocks present in the disk. There are mainly four approaches by using which, the free ... block. This block contains a pointer to the next free disk block, and so on.

Description : State and describe types of scheduler.

Last Answer : There are three types of scheduler: Long term scheduler Short term scheduler Medium term scheduler 1. Long term scheduler: It selects programs from job pool and loads them into the ... scheduler works in close communication with long term scheduler for loading process into the main memory. 

Description : What is purpose of system call? State two system calls with their functions.

Last Answer : System call provides an interface between a running program and operating system. It allows user to access services provided by operating system. This system calls are procedures written using C, ... send, receive messages transfer status information attach or detach remote devices. 

Description : Write Unix command for following: i)create a folder OSY ii) create a file FIRST in OSY folder iii) List/display all files and directories. iv) Write command to clear the screen

Last Answer : i) create a folder OSY: $mkdir OSY ii)create a file FIRST in OSY folder: $cd OSY $cat>FIRST or $ touch FIRST iii) List/display all files and directories: $ls iv) to clear screen: $clear

Description : Describe sequential and direct access method.

Last Answer : Sequential access: Information from the file is processed in order i.e. one record after another. It is commonly used access mode. For example, editors and compilers access files in sequence. A read ... prevent the user from accessing portions of the file system that may not be part of his file.

Description : Describe any four file attributes

Last Answer : File attributes: Name: The symbolic file name is the only information kept in human readable form. Identifier: File system gives a unique tag or number that identifies file within file ... Last modification and last use. These data can be useful for protection, security and usage monitoring.

Description : Write syntax for following commands: i)Sleep ii)Kill

Last Answer : i)sleep Syntax: sleep NUMBER[SUFFIX]… sleep OPTION ii) kill Syntax: kill pid

Description : Define virtual memory

Last Answer : Virtual memory is a memory management capability of an operating system (OS) that uses hardware and software to allow a computer to compensate for physical memory shortages by temporarily transferring data ... can be placed in overlays, but can concentrate instead on the problem to be programmed. 

Description : Define real time operating system. List its any four applications of it.

Last Answer : Real time Operating System: A real time system has well defined fixed time constraints. Processing should be done within the defined constraints -Hard and Soft real time system. OR The ... Applications: 1. Flight Control System 2. Simulations 3. Industrial control 4. Military applications

Description : Explain with neat sketch block diagram of optical fiber communication system and list out sources and detectors suitable for it.

Last Answer : OR 1. The light source is normally an infrared LED or LASER device which is driven by the current value from the V to I convertor. It emits light which is proportional ... optical energy electrical signal. The light detectors which are used as PIN photodiode and avalanche photo diode.

Description : Explain Satellite communication with neat diagram

Last Answer : SATELLITE COMMUNICATION: In satellite communication, signal transferring between the sender and receiver is done with the help of satellite. In this process, the signal which is basically a beam ... of satellite: Satellite television digital cinema satellite radio satellite internet access

Description : Explain the function of each layer of OSI reference model with neat diagram.

Last Answer : OSI model (open system interconnection) model was developed by ISO (international standard organization) Function of OSI model: i. It provides way to understand how internetwork operates. ... Network virtual terminal file transfer access and management mail services and directory services

Description : Explain Inter-process Communication (IPC) using mailbox/queue.

Last Answer : Inter-process communication using mailbox: Mailbox is the Interprocess communication mechanism. A process puts a data message for another process in the mailbox. Mailbox is also called as message exchange. ... a message. In mailbox IPC the sender need not to know the name of the receiver.

Description : An endpoint of an inter-process communication flow across a computer network is called a. socket b. pipe c. port d. machine

Last Answer : a. socket

Description : An endpoint of an inter-process communication flow across a computer network is called a. socket b. pipe c. port d. machine

Last Answer : a. socket

Description : A .................... architecture assigns only a few essential functions to the kernel, including address spaces, Inter process communication(IPC) and basic scheduling. A) Monolithic kernel B) Micro kernel C) Macro kernel D) Mini kernel

Last Answer : B) Micro kernel

Description : Which of the following is not the function of Microkernel? A) File management B) Low-level memory management C) Inter-process communication D) I/O interrupts management

Last Answer : A) File management

Last Answer : notes.txt (18 kb) I added extra knowledge in this file.I also attach my programs. If any doubts ask me. If any doubt on socket please let me know. I know little bit English knowledge. If any spell mistake and grammar error sorry sorry.

Description : Explain the necessity of multi-staging and inter cooling in case of two stage compressor with PV diagram

Last Answer : Necessity of multi staging with intercooling in air compression: The large pressure ratio gives rise in high compression ratio and high discharged temperature which produce adverse effect on the efficiency and ... and saving in work and power multi staging with intercooling is necessary.  

Description : How can inter-galactic communication between humans and aliens be practical?

Last Answer : Your observations are correct as long as we’re limited to speed-of-light transmissions, and as far as I know we still are.

Description : Personal selling can be defined as which of the following ? 1. People communication 2. Inter-connective communication 3. Local communication 4. Interpersonal communication 5. Direct communication

Last Answer : Interpersonal communication

Description : Telephone, radio inter communicating system are the media used for (a) Formal communication (b) Downward communication (c) Oral communication d) None of these

Last Answer : c) Oral communication

Description : Experience has shown that the most feasible plan for utilizing occupational orientation programme broadcast by radio is Options: A) The recording of the programme for inter communication playback B) The direct ... on the programme D) The bringing of pupils to listen to and report on the programme

Last Answer : A) The recording of the programme for inter communication playback 

Description : Organisational communication can also be equated with (A) intra-personal communication. (B) inter-personal communication. (C) group communication. (D) mass communication. 

Last Answer : (C) group communication. 

Description : Didactic communication is (A) intra-personal (B) inter-personal (C) organizational (D) relational

Last Answer : Answer: B A didactic method is a teaching method that follows a consistent scientific approach or educational style to engage the student?s mind. Didactic communication is the one which ... it also produces changes in students? cognitive, affective, behavioral and action?like reactions. 

Description : ICT stands for : (A) International Communication Technology (B) Intera Common Terminology (C) Information and Communication Technology (D) Inter connected Terminals

Last Answer : Answer: C

Description : Describe Bessemerization process with neat labeled diagram 

Last Answer : After smelting the molten matte is then transferred to a Bessemer converter which is a pear shaped furnace made up of steel and internally lined with lime or magnesia. It is mounted on trunnions and can ... on the surface of copper hence it is called as blister copper. It is 96 to 98% pure

Description : Describe the process of purification of aluminium by electrolytic refining with the help of neat, labelled diagram.

Last Answer : Process: 1) The electrolytic cell consists of an iron tank lined at the bottom with carbon, which serve as anode. A number of graphite rods serve as cathode. 2) The cell is filled with ... . Crude or impure Al is added to the bottom layer from time to time. The process is thus continued.

Description : Describe smelting process with neat labeled diagram.

Last Answer : Roasted copper ore is then mixed with coke & sand particles & then strongly heated at about 13500 C in a water jacketed blast furnace. At high temperature ferrous sulphide (FeS) is oxidised & ... of ferrous sulphide (FeS) is called as matte which is then removed from the lower outlet.

Description : Describe with a neat diagram, the process of any one type of electric welding. 

Last Answer : Methods of electric welding :  1. Resistance welding  i Butt welding  ii Spot welding  iii Seam welding  iv Projection welding  2. Arc Welding  i Carbon arc welding  ii ... as copper, iron etc. The electric arc effectively concentrate heat on the surfaces it is desired to join.

Description : ........................ model is a map which indicates roads, highways, towns and inter- relationships a. Iconic model b. Analogue model c. Mathematical model d. None of these

Last Answer : b. Analogue model

Description : Explain incremental process model using suitable diagram.

Last Answer : 1. Incremental model is also called as iterative enhancement model. 2. In this model the software is built in an incremental fashion. 3. Fig shows the project is divided into ... and it should be noted that the process flow for any increment can incorporate the prototyping paradigm. 

Description : What is time multiplexed space switching? With a neat diagram explain its operation.

Last Answer : Time division switches where an inlet or an outlet corresponded to a single subscriber line with one speech sample appearing every 125 µs on the line. Such switches are used in local exchanges. We now ... / Mt , Where t is the switching time including memory access time per inlet-outlet pair.  

Description : Explain with neat diagram the different hazards and the way to eliminate them.

Last Answer : • Classification of hazards • Static hazard & Dynamic hazard definitions • K map for selected functions • Method of elimination • Essential hazards

Description : Explain the operation of a full wave bridge rectifier with π filter using a neat diagram. Draw input and output waveforms.

Last Answer : During positive half-cycle of input, the secondary voltage VAB is positive, so diodes D1 and D2 forward biased and D3 and D4 reverse biased. The load current flows from terminal A ... smooth DC voltage appears across the load. The input and output waveforms are shown in the figure.