Local Procedure Call

Local Procedure Call

The local procedure call (LPC) facility is a service provided by the Microsoft Windows NT kernel for light weight message queue between processes on the same computer. The LPC interface is part of Windows NT's undocumented Native API, although it can be used indirectly in applications via the documented remote procedure call system using the NCALRPC transport (which is implemented by LPC).

Implementation

LPC is implemented using kernel "port" objects. A server process first creates a port object with a well known name, and waits for clients to connect. A client process then connects by opening that port and sending a connect message. If the server accepts the connection, a new unnamed port object is created for the connection. Port objects are securable kernel objects that allow a process to identify the process on the other side of the connection.

For short messages (fewer than 304 bytesFact|date=July 2008) the kernel copies the message buffers between processes. Longer messages require the creation of a shared memory section to transfer data, which the LPC service maps between the processes instead.

A related method of inter-process communication known as "Quick LPC" uses shared memory for data transfer and special event pair objects for synchronization. Event pairs allow the called thread to continue the current quantum, reducing scheduling overhead and latency. A standard port object (or some other IPC mechanism) is needed for initial communication.

References

* Prasad Dabak, Milind Borate, Sandeep Phadke. "Undocumented Windows NT." Hungry Minds, 1999. ISBN 0-7645-4569-8
* David A. Solomon, Mark E. Russinovich. "Inside Windows 2000." Microsoft Press. ISBN 0-7356-1021-5

External links

* [http://www.windowsitlibrary.com/Content/356/08/toc.html Local Procedure Call] - Includes explanation of undocumented functions
* [http://www.zezula.net/en/prog/lpc.html LPC Communication]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Local Procedure Call —    Abbreviated LPC. An interprocess communications method used in multitasking operating systems that allows tasks running concurrently to talk to each other. LPCs allow tasks to share memory space, synchronize tasks, and pass messages to one… …   Dictionary of networking

  • Remote procedure call — (RPC) is an Inter process communication technology that allows a computer program to cause a subroutine or procedure to execute in another address space (commonly on another computer on a shared network) without the programmer explicitly coding… …   Wikipedia

  • Local Government Boundary Commission (1945 - 1949) — The Local Government Boundary Commission was established in 1945 to review the boundaries of local authority areas in England and Wales outside the Counties of London and Middlesex. The Commission produced its report in 1948 which proposed large… …   Wikipedia

  • Local number portability — This article is about telephone number portability on landlines. For telephone number portability on mobile phones, see Mobile number portability. Local number portability (LNP) for fixed lines, and full mobile number portability (FMNP) for… …   Wikipedia

  • Call stack — In computer science, a call stack is a stack data structure that stores information about the active subroutines of a computer program. This kind of stack is also known as an execution stack, control stack, run time stack, or machine stack, and… …   Wikipedia

  • Call sign — In broadcasting and radio communications, a call sign (also known as a callsign or call letters, or abbreviated as a call, or otherwise known as a handle) is a unique designation for a transmitting station. In some countries they are used as… …   Wikipedia

  • HKEY LOCAL MACHINE — Base de registre Pour les articles homonymes, voir BDR. La base de registre (BDR) est une base de données utilisée par le système d exploitation Windows. Elle contient les données de configuration du système d exploitation et des autres logiciels …   Wikipédia en Français

  • Voice procedure — includes various techniques used to clarify, simplify and standardize spoken communications over two way radios, in use by the military, in civil aviation, police and fire dispatching systems, citizens band radio (CB), etc. Voice procedure… …   Wikipedia

  • PRACTICE AND PROCEDURE — CIVIL Court Sessions The courts of three (judges) exercising jurisdiction in civil matters (see bet din ) held their sessions during the day, but – following Jethro s advice to Moses that judges should be available at all times (Ex. 18:22) – they …   Encyclopedia of Judaism

  • Stored procedure — A stored procedure is a subroutine available to applications accessing a relational database system. Stored procedures (sometimes called a proc, sproc, StoPro, or SP) are actually stored in the database data dictionary.Typical uses for stored… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”