Input/output

In computing, input/output (I/O, i/o, or informally io or IO) is the communication between an information processing system, such as a computer, and the outside world, such as another computer system, peripherals, or a human operator. Inputs are the signals or data received by the system and outputs are the signals or data sent from it. The term can also be used as part of an action; to "perform I/O" is to perform an input or output operation.

I/O devices are the pieces of hardware used by a human (or other system) to communicate with a computer. For instance, a keyboard or computer mouse is an input device for a computer, while monitors and printers are output devices. Devices for communication between computers, such as modems and network cards, typically perform both input and output operations. Any interaction with the system by an interactor is an input and the reaction the system responds is called the output.

The designation of a device as either input or output depends on perspective. Mice and keyboards take physical movements that the human user outputs and convert them into input signals that a computer can understand; the output from these devices is the computer's input. Similarly, printers and monitors take signals that computers output as input, and they convert these signals into a representation that human users can understand. From the human user's perspective, the process of reading or seeing these representations is receiving output; this type of interaction between computers and humans is studied in the field of human–computer interaction. A further complication is that a device traditionally considered an input device, e.g., card reader, keyboard, may accept control commands to, e.g., select stacker, display keyboard lights, while a device traditionally considered as an output device may provide status data (e.g., low toner, out of paper, paper jam).

In computer architecture, the combination of the CPU and main memory, to which the CPU can read or write directly using individual instructions, is considered the brain of a computer. Any transfer of information to or from the CPU/memory combo, for example by reading data from a disk drive, is considered I/O.[1] The CPU and its supporting circuitry may provide memory-mapped I/O that is used in low-level computer programming, such as in the implementation of device drivers, or may provide access to I/O channels. An I/O algorithm is one designed to exploit locality and perform efficiently when exchanging data with a secondary storage device, such as a disk drive.

Interface

An I/O interface is required whenever the I/O device is driven by a processor. Typically a CPU communicates with devices via a bus. The interface must have the necessary logic to interpret the device address generated by the processor. Handshaking should be implemented by the interface using appropriate commands (like BUSY, READY, and WAIT), and the processor can communicate with an I/O device through the interface. If different data formats are being exchanged, the interface must be able to convert serial data to parallel form and vice versa. Because it would be a waste for a processor to be idle while it waits for data from an input device there must be provision for generating interrupts[2] and the corresponding type numbers for further processing by the processor if required.[clarification needed]

A computer that uses memory-mapped I/O accesses hardware by reading and writing to specific memory locations, using the same assembly language instructions that computer would normally use to access memory. An alternative method is via instruction-based I/O which requires that a CPU have specialized instructions for I/O.[1] Both input and output devices have a data processing rate that can vary greatly.[2] With some devices able to exchange data at very high speeds direct access to memory (DMA) without the continuous aid of a CPU is required.[2]

Higher-level implementation

Higher-level operating system and programming facilities employ separate, more abstract I/O concepts and primitives. For example, most operating systems provide application programs with the concept of files. Most programming languages provide I/O facilities either as statements in the language or as functions in a standard library for the language.

An alternative to special primitive functions is the I/O monad, which permits programs to just describe I/O, and the actions are carried out outside the program. This is notable because the I/O functions would introduce side-effects to any programming language, but this allows purely functional programming to be practical.

The I/O facilities provided by operating systems may be record-oriented, with files containing records, or stream-oriented, with the file containing a stream of bytes.

Channel I/O

Channel I/O requires the use of instructions that are specifically designed to perform I/O operations. The I/O instructions address the channel or the channel and device; the channel asynchronously accesses all other required addressing and control information. This is similar to DMA, but more flexible.

Port-mapped I/O

Port-mapped I/O also requires the use of special I/O instructions. Typically one or more ports are assigned to the device, each with a special purpose. The port numbers are in a separate address space from that used by normal instructions.

Direct memory access

Direct memory access (DMA) is a means for devices to transfer large chunks of data to and from memory independently of the CPU.

See also

References

  1. ^ a b Null, Linda; Julia Lobur (2006). The Essentials of Computer Organization and Architecture. Jones & Bartlett Learning. p. 185. ISBN 0763737690. Archived from the original on 20 December 2016. Retrieved 11 December 2016.
  2. ^ a b c Abd-El-Barr, Mostafa; Hesham El-Rewini (2005). Fundamentals of Computer Organization and Architecture. John Wiley & Sons. pp. 161–162. ISBN 9780471478331. Archived from the original on 21 December 2016. Retrieved 11 December 2016.

Read other articles:

This article documents a current sporting event. Information may change rapidly as the event progresses. Initial news reports, scores, or statistics may be unreliable. The last updates to this article may not reflect the most current information. Please feel free to improve this article (but note that updates without valid and reliable references will be removed) or discuss changes on the talk page. (Learn how and when to remove this message) 2024 edition of the IIHF World Championship Main arti…

National Security Agency surveillanceMap of global NSA data collection as of 2007[update], with countries subject to the most data collection shown in red Programs Pre-1978 ECHELON MINARET SHAMROCK PROMIS Since 1978 Upstream collection BLARNEY FAIRVIEW Main Core ThinThread Genoa Since 1990 RAMPART-A Since 1998 Tailored Access Operations Since 2001 OAKSTAR STORMBREW Trailblazer Turbulence Genoa II Total Information Awareness President's Surveillance Program Terrorist Surveillance Program …

بورت دو لا فيلاتPorte de la Villette (بالفرنسية) معلومات عامةالتقسيم الإداري الدائرة التاسعة عشرة في باريس البلد  فرنسا شبكة المواصلات مترو باريس المالك الهيئة المستقلة للنقل في باريس الإدارة الهيئة المستقلة للنقل في باريس الخطوط الخط 7 لمترو باريس المحطات المجاورة كورونتان كاري…

سفارة جمهورية الدومينيكان في المملكة المتحدة جمهورية الدومينيكان المملكة المتحدة الإحداثيات 51°30′56″N 0°11′15″W / 51.5156°N 0.187444°W / 51.5156; -0.187444 البلد المملكة المتحدة  المكان لندن الاختصاص المملكة المتحدة،  وجمهورية أيرلندا[1]  تعديل مصدري - تعديل   سفارة …

Questa voce sull'argomento cestisti statunitensi è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Chet Noe Nazionalità  Stati Uniti Altezza 200 cm Peso 91 kg Pallacanestro Ruolo Centro CarrieraGiovanili Los Angeles Washington High1949-1953 Oregon DucksSquadre di club 1953-1954Buchan Bakers1954-1955Houston Ada Oilers1955-? Phillips 66ers Il simbolo → indica un trasferimento in prestito. …

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Tourism in Chhattisgarh – news · newspapers · books · scholar · JSTOR (October 2023) (Learn how and when to remove this message) Tourism is an important part of the economy of the Indian state of Chhattisgarh, India's tenth largest state. The state has many ancien…

Scottish Parliament constituency Not to be confused with Glasgow Anniesland (UK Parliament constituency). Glasgow AnnieslandBurgh constituencyfor the Scottish ParliamentGlasgow Anniesland shown within the Glasgow electoral region and the region shown within ScotlandPopulation75,114 (2019)[1]Current constituencyCreated1999PartyScottish National PartyMSPBill KiddCouncil areaGlasgow City Glasgow Anniesland (Gaelic: Glaschu Fearann Anna) is a constituency of the Scottish Parliament (Holyrood…

American baseball player This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Ray Caldwell – news · newspapers · books · scholar · JSTOR (December 2008) (Learn how and when to remove this message) Baseball player Ray CaldwellCaldwell with the New York Yankees in 1918PitcherBorn: (1888-04-26)April 26, 1888Corydon, Pe…

Artikel ini memiliki beberapa masalah. Tolong bantu memperbaikinya atau diskusikan masalah-masalah ini di halaman pembicaraannya. (Pelajari bagaimana dan kapan saat yang tepat untuk menghapus templat pesan ini) Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujukan ke sumber tepercaya. Pernyataan tak bersumber bisa saja dipertentangkan dan dihapus.Cari sumber: Yudha Pratomo – berita&#…

16th-century BC royal cemetery in southern Greece Grave Circle ANative name Greek: Ταφικός περίβολος A'Grave Circle A (left) and the main entrance of the citadel (right)LocationMycenaeCoordinates37°43′49″N 22°45′22″E / 37.73028°N 22.75611°E / 37.73028; 22.75611AreaArgolis, GreeceFormed16th century BCBuilt forResting place of the Mycenaean ruling familiesLocation of Grave Circle A in Greece Grave Circle A is a 16th-century BC royal cemetery situ…

Celtic-language music festival Pan Celtic Festival Logos of the Pan Celtic FestivalGenreCeltic music festivalDatesEvery SpringLocation(s)IrelandYears active1971–presentFounded byCon O'ConnaillWebsitewww.panceltic.ie The Pan Celtic Festival (Irish: Féile Pan Cheilteach; branded simply using the Irish name Pan Cheilteach) is a Celtic-language music festival held annually in the week following Easter, in Ireland, since its inauguration in 1971. The first Pan Celtic Festival took place in Killarn…

Ordre de Saint-Louis Ordo Santo Louis Dianugerahkan oleh Raja Perancis Negara Kerajaan Prancis Persyaratan penerima Tentara Katolik Dianugerahkan atas dasar Keberanian militer Status Dihapuskan oleh Revolusi Juli pada tahun 1830 Moto Bellicae virtutis praemium Hadiah keberanian militer Statistik Ditetapkan pada 5 April 1693 Pita ordo Ordre royal et militaire de Saint-Louis (Ordo kerajaan dan militer Santo Louis) adalah sebuah ordo kehormatan Prancis yang dibuat pada 5 April 1693 oleh Louis XIV u…

American actor (1887–1966) William FrawleyFrawley in 1951BornWilliam Clement Frawley(1887-02-26)February 26, 1887Burlington, Iowa, U.S.DiedMarch 3, 1966(1966-03-03) (aged 79)Los Angeles, California, U.S.Resting placeSan Fernando Mission CemeteryOther namesBill FrawleyOccupationActorYears active1914–1965Spouse Edna Louise Broedt ​ ​(m. 1914; div. 1927)​ William Clement Frawley (February 26, 1887 – March 3, 1966) was an American …

Uruguayan military leader during the War for Independence; national hero You can help expand this article with text translated from the corresponding article in Spanish. (November 2021) Click [show] for important translation instructions. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the…

Swahili neologism for the Atlantic Slave Trade This article is about the demographic history which is related to the enslavement of Black Africans. For the characterisation of US policies, see Black genocide. African Holocaust redirects here. For the Steel Pulse album, see African Holocaust (album). For the German genocide of African peoples in Southwest Africa, see Herero and Namaqua genocide. Part of the Politics series onPan-Africanism Arts African art Stolen African art in Western collection…

American sculptor Randolph Rogers Randolph Rogers (July 6, 1825 in Waterloo, New York – January 15, 1892 in Rome, Italy) was an American Neoclassical sculptor. An expatriate who lived most of his life in Italy, his works ranged from popular subjects to major commissions, including the Columbus Doors at the U.S. Capitol and American Civil War monuments. Biography Nydia, the Blind Flower Girl of Pompeii (1853–54), Metropolitan Museum of Art, New York City. Rogers was born in Waterloo, New York…

فيات بونتوالشعارمعلومات عامةالنوع طراز سيارة الفئة سيارة صغيرةالعلامة التجارية فيات المصنع فياتالإنتاج 1993–الآنالمصمم جورجيتو جيوجيارو التصميم 3/5-باب هاتشباك3-باب مكشوفة (1994–99)3-باب فانموقع الويب fiat.it… (الإيطالية) فيات أونوFiat Grande Punto (en) Fiat Palio (en) تعديل - تعديل مصدري - تعديل و…

Disambiguazione – Se stai cercando altri significati, vedi Cultura (disambigua). Questa voce o sezione sugli argomenti sociologia e cultura non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Illustrazione dall'Hortus deliciarum, una delle enciclopedie che nel Medioevo costituivano la summa della cultura sa…

Untuk wilayah geografis di Jawa Timur, lihat Tapal Kuda, Jawa Timur. Bentuk ladam atau sepatu kuda seperti huruf U. Ladam (tapal kuda/sepatu kuda) adalah besi pelapis yang dipakai oleh kuda untuk melindungi kaki yang sebenarnya merupakan kuku kuda untuk melindungi saat berjalan - seperti sepatu. Sepatu kuda ini, dibuat oleh pandai besi. Sebelum dipaku kuku kuda dirapikan dulu dengan cara dipotong dengan peralatan pisau khusus termasuk juga ada martil untuk memukul pisau potong, martil diperlukan…

South African jazz drummer This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Louis Moholo – news · newspapers · books · scholar · JSTOR (November 2017) (Learn how and when to remove this message) Lou…