Anonymous pipe

In computer science, an anonymous pipe is a simplex FIFO communication channel that may be used for one-way interprocess communication (IPC). An implementation is often integrated into the operating system's file IO subsystem. Typically a parent program opens anonymous pipes, and creates a new process that inherits the other ends of the pipes, or creates several new processes and arranges them in a pipeline.

Full-duplex (two-way) communication normally requires two anonymous pipes.

Pipelines are supported in most popular operating systems, from Unix and DOS onwards, and are created using the "|" character in many shells.

Unix

Pipelines are an important part of many traditional Unix applications and support for them is well integrated into most Unix-like operating systems. Pipes are created using the pipe system call, which creates a new pipe and returns a pair of file descriptors referring to the read and write ends of the pipe. Many traditional Unix programs are designed as filters to work with pipes.

Microsoft Windows

Like many other device IO and IPC facilities in the Windows API, anonymous pipes are created and configured with API functions that are specific to the IO facility. In this case CreatePipe is used to create an anonymous pipe with separate handles for the read and write ends of the pipe. Read and write IO operations on the pipe are performed with the standard IO facility API functions ReadFile and WriteFile.

On Microsoft Windows, reads and writes to anonymous pipes are always blocking.[1] In other words, a read from an empty pipe will cause the calling thread to wait until at least one byte becomes available or an end-of-file is received as a result of the write handle of the pipe being closed. Likewise, a write to a full pipe will cause the calling thread to wait until space becomes available to store the data being written. Reads may return with fewer than the number of bytes requested (also called a short read).

New processes can inherit handles to anonymous pipes in the creation process.

See also

References

  • Hart, Johnson M. Windows System Programming, Third Edition. Addison-Wesley, 2005. ISBN 0-321-25619-0
  • "pipe(7) - Linux man page". Archived from the original on 23 March 2010. Retrieved 2010-02-27.

Notes

  1. ^ "Anonymous Pipe Operations". MSDN. Retrieved 2010-02-27. Asynchronous (overlapped) read and write operations are not supported by anonymous pipes.

Read other articles:

Mazmur 8Naskah Gulungan Mazmur 11Q5 di antara Naskah Laut Mati memuat salinan sejumlah besar mazmur Alkitab yang diperkirakan dibuat pada abad ke-2 SM.KitabKitab MazmurKategoriKetuvimBagian Alkitab KristenPerjanjian LamaUrutan dalamKitab Kristen19← Mazmur 7 Mazmur 9 → Mazmur 8 (disingkat Maz 8, Mzm 8 atau Mz 8) adalah sebuah mazmur dalam bagian pertama Kitab Mazmur di Alkitab Ibrani dan Perjanjian Lama dalam Alkitab Kristen. Mazmur ini digubah oleh Daud.[1][2] Teks...

 

Emilio Jesús Schleh Emilio J. SchlehInformación personalNacimiento 1 de enero de 1884Monteros, Provincia de Tucumán, ArgentinaFallecimiento diciembre de 1965Nacionalidad ArgentinaInformación profesionalOcupación Periodista, escritor, historiador, investigadorAños activo Siglo XX[editar datos en Wikidata] Emilio Jesús Schleh (Monteros, Tucumán, 1 de enero de 1884 - diciembre de 1965) fue un investigador y periodista argentino. Su padre fue Emilio Schleh, notario y hombre...

 

Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ne cite pas suffisamment ses sources (septembre 2010). Si vous disposez d'ouvrages ou d'articles de référence ou si vous connaissez des sites web de qualité traitant du thème abordé ici, merci de compléter l'article en donnant les références utiles à sa vérifiabilité et en les liant à la section « Notes et références » En pratique : Quelles sources sont attendues ? ...

Ferrocarril Córdoba a Rosario Estación Rosario Central CórdobaLugarUbicación Santa Fe, CórdobaDescripciónInauguración 1890Clausura 1913Inicio RosarioFin RafaelaCaracterísticas técnicasLongitud 291 kmAncho de vía 1.000 mm[editar datos en Wikidata] El Ferrocarril Córdoba a Rosario fue una empresa de capitales británicos que funcionó desde 1890 hasta el año 1913. Origen Por ley de la Provincia de Santa Fe, del 2 de septiembre de 1886, se concedió a Santiago Temple la con...

 

Der Titel dieses Artikels ist mehrdeutig. Für die Branche siehe Maschinenbau (Branche). Anlage zum Abfüllen und Dosieren, Beispiel für eine moderne Maschine Nähmaschine, etwa 1900; die Funktion der Maschine ist bis heute prinzipiell gleich geblieben Der Maschinenbau (auch als Maschinenwesen bezeichnet) ist eine klassische Ingenieurwissenschaft und erstreckt sich auf Entwicklung, Konstruktion und Produktion von Maschinen und Anlagen. Dazu zählen u. a.: Maschinen und Anlagen für tech...

 

تحوي هذه المقالة أو هذا القسم ترجمة آلية. فضلًا، ساهم في تدقيقها وتحسينها أو إزالتها لأنها تخالف سياسات ويكيبيديا. (نقاش) (مارس 2018) المغرب في الألعاب الأولمبية علم المغرب رمز ل.أ.د.  MAR ل.أ.و. اللجنة الأولمبية الوطنية المغربية موقع الويبwww.marocolympique.org (بالفرنسية) في ...

Mountain in Sichuan, China This article is an orphan, as no other articles link to it. Please introduce links to this page from related articles; try the Find link tool for suggestions. (October 2022) Mount Zheduo折多山Zheduo PassHighest pointElevation4,962 m (16,280 ft)Prominence1,800 m (5,900 ft)Coordinates30°06′09″N 101°48′48″E / 30.10250°N 101.81333°E / 30.10250; 101.81333NamingNative nameརྒྱུ་ལ་ཁ (Standa...

 

Entrance sign to the park. The Georgia International Horse Park (referred to by locals as The Horse Park) is located in Conyers, Georgia, United States, 30 miles (50 km) east of Atlanta. History Due to the growth of Rockdale County, Georgia, in the late 1980s, the county was looking to expand its wastewater treatment system, but they were having to find alternative uses to strict environmental regulations on the local, state, and federal levels. The City of Conyers, Georgia, found 1,139 ...

 

Trong toán học, đồ thị đối ngẫu của một đồ thị mặt phẳng G là một đồ thị G' trong đó có một đỉnh tương ứng cho mỗi miền mặt phẳng của đồ thị G, và có mỗi cạnh tương ứng với mỗi cạnh của G kết nối hai miền kề nhau của G. Thuật ngữ đối ngẫu được dùng để chỉ tính đối xứng này: nếu H là đối ngẫu của G thì G cũng là đối ngẫu của H (nếu G liên thông). Hình 1: G...

Kingdom in Central Myanmar (Burma) – 1313 to 1365 Kingdom of Pinyaပင်းယခေတ်1313–1365Pinya Kingdom c. 1350StatusKingdomCapitalPinyaCommon languagesBurmese (official) Mon, ShanReligion Theravada Buddhism, Ari Buddhism, AnimismGovernmentMonarchy• 1313–25 Thihathu• 1325–40 Uzana I• 1344–50 Kyawswa I• 1359–64 Narathu Regent • 1340–44 Sithu LegislatureHluttawHistorical eraWarring states• Myinsaing Regency founded 17...

 

This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Supreme Military Command of the People's Republic of China – news · newspapers · books · scholar · JSTOR (December 2009) (Learn how and when to remove this template message) Politics of China Leadership Leadership generations Succession of power Hu–Wen Administration (2002R...

 

Incident du détroit de Kertch Navires ukrainiens capturés visibles dans le port de Kertch le 27 novembre 2018. Informations générales Date 25 novembre 2018 Lieu Détroit de Kertch Casus belli Tentative de franchissement du détroit de Kertch par trois navires ukrainiens Belligérants Russie Ukraine Forces en présence plusieurs navires de guerre 3 navires de guerre Pertes 2 navires endommagés 24 prisonniers (dont 3 à 6 blessés)[1] 3 navires capturés (dont 1 endommagé) Guerre russo-uk...

Mexico Rocks is a shallow patch reef complex located off the far northern tip of Ambergris Caye, and is part of the Belize Barrier Reef system in the Caribbean Sea. The site consists of approximately 100 Holocene patch reefs clustered on a Pleistocene ridge of limestone and is composed predominantly of boulder star corals (Montastraea annularis).[1] The reef has accumulated in shallow water, about 2.5 to 5 metres (8 to 16 ft) deep, over the last 420 years, under static sea level ...

 

Jewish penitential poetry Crowd performing Slichot and Annulment of Vows (Hatarat Nedarim) at the Western Wall in Jerusalem. Part of a series onJudaism     Movements Orthodox Haredi Hasidic Modern Conservative Conservadox Reform Karaite Reconstructionist Renewal Humanistic Haymanot Philosophy Principles of faith Kabbalah Messiah Ethics Chosenness God Names Musar movement Texts Tanakh Torah Nevi'im Ketuvim Ḥumash Siddur Piyutim Zohar Rabbinic Mishnah Talmud Midrash Toseft...

 

English local election A map showing the wards of Hammersmith and Fulham since 2002 Hammersmith and Fulham London Borough Council is the local authority for the London Borough of Hammersmith and Fulham in London, England. The council is elected every four years. Political control Hammersmith and Fulham London Borough CouncilStructureSeats46 councillorsPolitical groupsMajority Party (35)   Labour (35) Opposition (11)   Conservative (11) Since the first elections to the council in 196...

Resolusi 1593Dewan Keamanan PBBPeta desa-desa Darfur yang hancur dalam konflik Darfur (2004)Tanggal31 Maret 2005Sidang no.5.158KodeS/RES/1593 (Dokumen)TopikSituasi di SudanRingkasan hasil11 mendukungTidak ada menentang4 abstainHasilDiadopsiKomposisi Dewan KeamananAnggota tetap Tiongkok Prancis Rusia Britania Raya Amerika SerikatAnggota tidak tetap Aljazair Argentina Benin Brasil Denmark Filipina Jepang Rumania Tan...

 

For the river in Romania, see Slivna (river). For the village in Romania, see Berești-Meria. Place in Upper Carniola, SloveniaSlivnaSlivnaLocation in SloveniaCoordinates: 46°7′20.96″N 14°48′56.21″E / 46.1224889°N 14.8156139°E / 46.1224889; 14.8156139Country SloveniaTraditional regionUpper CarniolaStatistical regionCentral SavaMunicipalityLitijaArea • Total3.47 km2 (1.34 sq mi)Elevation626.6 m (2,055.8 ft)Population ...

 

2014 Birmingham City Council election ← 2012 22 May 2014 2015 → One third (40) seats to Birmingham City Council61 seats needed for a majority   First party Second party Third party   Leader Albert Bore Mike Whitby (did not seek re-election) Paul Tilsley Party Labour Conservative Liberal Democrats Leader's seat Ladywood Harborne Sheldon Seats won 77 31 12 Seat change 2 2 3 2014 local election results in Birmingham. Council control before election ...

Genus of plants Not to be confused with Jupiter or Junlper. For other uses, see Juniper (disambiguation). Juniper Utah juniper (Juniperus osteosperma) in Nevada, United States Scientific classification Kingdom: Plantae Clade: Tracheophytes Clade: Gymnospermae Division: Pinophyta Class: Pinopsida Order: Cupressales Family: Cupressaceae Subfamily: Cupressoideae Genus: JuniperusL. Type species Juniperus communisL. Species See text Synonyms Arceuthos Antoine & Kotschy Oxycedrus Carrière Sabi...

 

American singer-songwriter Madison CunninghamCunningham performing in 2017Background informationBorn (1996-10-14) October 14, 1996 (age 27)Escondido, California, U.S.[1]OriginCosta Mesa, California, U.S.GenresAmericanafolk-popfolk-rockOccupation(s)SingersongwriterguitaristInstrument(s)VocalsguitarpianoYears active2014–presentLabelsVerve ForecastWebsitemadisoncunningham.comMusical artist Madison Cunningham (born October 14, 1996)[2] is an American singer, songwriter and ...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!