Share to: share facebook share twitter share wa share telegram print page

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:

Dutch sprinter Lieke KlaverKlaver at the 2023 European Indoor Championships in IstanbulPersonal informationBorn (1998-08-20) 20 August 1998 (age 25)Velsen-Zuid, NetherlandsHeight1.82 m (6 ft 0 in)[1]SportSportTrack and fieldEvent(s)100 m, 200 m, 400 m, 4×100 m relay, 4×400 m relayAchievements and titlesHighest world rankingNo. 4 (400 m, 2023)No. 14 (200 m, 2023)No. 66 (overall, 2023)Personal best(s)100 m: 11.33 (2023)200 m: 22.4...

Costa Rican footballer (born 1983) Jairo Arrieta Arrieta with D.C. UnitedPersonal informationFull name Jairo Arrieta ObandoDate of birth (1983-08-25) 25 August 1983 (age 40)Place of birth Nicoya, Costa RicaHeight 1.73 m (5 ft 8 in)Position(s) ForwardTeam informationCurrent team JicaralNumber 19Senior career*Years Team Apps (Gls)2003–2004 Guanacasteca 60 (12)2004–2006 Brujas 56 (11)2006–2012 Saprissa 178 (48)2012–2014 Columbus Crew 67 (17)2015 D.C. United 27 (5)2016...

Food and drink of peoples Indigenous to the Americas Wild rice is a native traditional food of Minnesota, Wisconsin, Michigan, and some areas of North Dakota.[1] Part of a series onNative Americans in the United States History Paleo-Indians Lithic stage Archaic period in the Americas Formative stage Classic stage Post-Classic stage Woodland period Age of Discovery European colonization of the Americas Population history of Indigenous peoples of the Americas Slavery Slavery in the Unit...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2019) موريس جوشوا معلومات شخصية الميلاد سنة 1967 (العمر 55–56 سنة)  شيكاغو  مواطنة الولايات المتحدة  الحياة العملية المهنة منتج أسطوانات،  ودي جيه،  وموس

William O'Bryen DruryWilliam O'Bryen DruryMeninggal6 Maret 1811Pengabdian Kerajaan InggrisDinas/cabang Angkatan Laut KerajaanPangkatLaksamana MudaKomandanHMS PowerfulPangkalan Laut India TimurPerang/pertempuranPerang Revolusi Prancis• Pertempuran CamperdownPerang Napoleon• Invasi Île de France Laksamana Muda William O'Bryen Drury (meninggal 6 Maret 1811) adalah perwira tinggi Angkatan Laut Kerajaan Inggris selama Perang Napoleon. Karier Drury menjadi komandan kapal HMS ''Powerful'' selam...

Election in Maine Main article: 2008 United States presidential election 2008 United States presidential election in Maine ← 2004 November 4, 2008 2012 →   Nominee Barack Obama John McCain Party Democratic Republican Home state Illinois Arizona Running mate Joe Biden Sarah Palin Electoral vote 4 0 Popular vote 421,923 295,273 Percentage 57.71% 40.38% County Results Municipality Results Obama   40-50%   50-60%   60-70...

Species of bird White-bellied woodpecker D. j. hodgsonii Conservation status Least Concern (IUCN 3.1)[1] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Aves Order: Piciformes Family: Picidae Genus: Dryocopus Species: D. javensis Binomial name Dryocopus javensis(Horsfield, 1821) Subspecies See text The white-bellied woodpecker or great black woodpecker (Dryocopus javensis) is a woodpecker species inhabiting evergreen forests in tropical ...

Mid-19th century drawing of rock reliefs at Taq-e Bostan, showing Sasanian dress Sasanian dress (Middle Persian: ǰāmag or paymōg), represented by the Persians, was broadly similar to dresses worn by other Iranian peoples.[1] It was especially appropriate and applicable for horse riding.[1] Most extant primary sources for the study of Sasanian dress are forms of visual art, rock reliefs in particular.[1] In relation to the Sasanian dress, Matthew Canepa (2018) states...

The Amiga Walker (1996). The Amiga Walker, sometimes incorrectly known as the Mind Walker, is a prototype of an Amiga computer developed and shown by Amiga Technologies in late 1995/early 1996. Walker was planned as a replacement for the A1200 with a faster CPU, better expansion capabilities, and a built-in CD-ROM. The Walker was never released; Escom and Amiga Technologies went bankrupt, and only two (three) prototypes were made.[1][2][3] The case is unique and radica...

Rober Bernardo III de Foix, 1276. Roger Bernardo III (? - Tarascon-sur-Ariège, 3 de marzo de 1302[1]​) fue conde de Foix y vizconde de Castellbó y de Cerdañá (Roger Bernardo II) donde sucedió a su padre Roger IV de Foix a su fallecimiento en 1265. En 1272 se alió con Geraud V conde de Armañac para combatir al discolo señor de Sompuy, el cual pidió ayuda al rey de Francia quien prohibió la guerra. Pero los aliados no hicieron caso y el rey ordenó la presencia del conde de Foix...

Untuk album Titi DJ tahun 2004, lihat Immaculate Collection. The Immaculate Collectionterbaik karya MadonnaDirilis13 November 1990The Royal Box: 1 Januari 1991Direkam1982–1990GenrePop, danceDurasi73:34LabelSire, Warner Bros.ProduserMadonna, Stephen Bray, Patrick Leonard, John Jellybean Benitez, Reggie Lucas, Nile Rodgers, Shep Pettibone, Lenny KravitzKronologi Madonna I'm Breathless(1990)I'm Breathless1990 The Immaculate Collection(1990) Erotica(1992)Erotica1992 The Immaculate Collectio...

Delta Air Lines Technical Operations facility in Atlanta, Georgia, United States Delta TechOpsTypeSubsidiaryIndustryAviationFounded1929HeadquartersHartsfield-Jackson Atlanta International AirportKey peopleEd Bastian (CEO, Delta Air Lines)Mahendra Nair (SVP, Delta TechOps)ProductsMaintenance, Repair and OverhaulNumber of employees9,600+ParentDelta Air LinesWebsitedeltatechops.com Delta TechOps (Technical Operations) is the maintenance, repair and overhaul (MRO) division of Delta Air Lines, hea...

2015 American filmEverything Is Copy —Nora Ephron: Scripted & UnscriptedDirected by Jacob Bernstein Nick Hooker Produced by Graydon Carter Annabelle Dunne Carly Hugo Sheila Nevins Matthew Parker Starring Meg Ryan Meryl Streep Tom Hanks Steven Spielberg Mike Nichols Gay Talese Richard Cohen Cinematography Christine Ng Bradford Young Edited byBob EisenhardtMusic byJoel GoodmanProductioncompany Loveless Distributed byHBORelease dates September 29, 2015 (2015-09-29) (New ...

Europe–Africa RegionMost recent season or competition:2022 Intermediate League World SeriesSportBaseballFounded2014Most recentchampion(s) Haarlem, NetherlandsMost titles Czech Republic (5) The Intermediate League World Series Europe–Africa Region is one of six International regions that currently sends teams to the World Series in Livermore, California. The region's participation in the ILWS dates back to 2014. Europe–Africa Region Countries  Austria  Belgium  Croati...

Collected Poems in Englishангл. Collected Poems in English Жанр Поэзия Автор Иосиф Бродский Язык оригинала английский Дата написания 1972—1996 Дата первой публикации 2000 Издательство New York: Farrar, Straus and Giroux Collected Poems in English — наиболее полное на сегодняшний день собрание англоязычной поэзии Иосифа...

Hospital in EnglandHarefield HospitalGuy's and St Thomas' NHS Foundation TrustHarefield HospitalLocation within HillingdonGeographyLocationHarefield, Greater London, England, United KingdomOrganisationCare systemNHS EnglandTypeSpecialistAffiliated universityNational Heart and Lung Institute at Imperial College, LondonServicesEmergency departmentNo Accident & EmergencyBeds149SpecialityCardiothoracic surgery including transplantation; cardiology; respiratory medicineHistoryOpened1937LinksWe...

Town in West Bengal, IndiaKurseongTownPanorama of KurseongNickname: The School Town[1]KurseongLocation in West Bengal, IndiaShow map of West BengalKurseongKurseong (India)Show map of IndiaCoordinates: 26°52′40″N 88°16′38″E / 26.87778°N 88.27722°E / 26.87778; 88.27722Country IndiaStateWest BengalDistrictDarjeelingGovernment • TypeMunicipality • BodyKurseong MunicipalityArea[3] • Total7.50 km2...

Spanish futsal club Football clubJimbee CartagenaFull nameFutsal CartagenaFounded1993Dissolved2014GroundPalacio de los Deportes,Cartagena, SpainCapacity5,162LeaguePrimera División2022–23Regular season: 3rd of 16Playoffs: Quarter-finalsWebsiteClub website Home colours Away colours Polaris World Cartagena logo Futsal Cartagena was a futsal club based in Cartagena, a city in the autonomous community of Region of Murcia. The club was founded in 1993 and held its home matches in Palacio de los ...

2007 studio album by Rush of FoolsRush of FoolsStudio album by Rush of FoolsReleasedMay 8, 2007 (2007-05-08)GenreChristian rock, indie rockLength41:22[1]LabelMidasRush of Fools chronology Rush of Fools(2007) Wonder of the World(2008) Professional ratingsReview scoresSourceRatingAllMusic[2]Christianity Today[3]Jesus Freak Hideout[4] Rush of Fools is the self-titled debut studio album from Christian rock band Rush of Fools. It was released ...

British-Indian Baronet (1879–1962) For other people named Cowasjee Jehangir, see Cowasjee Jehangir (disambiguation). SirCowasji JehangirBt, GBE, KCIEBorn(1879-02-16)February 16, 1879DiedOctober 17, 1962(1962-10-17) (aged 83)NationalityIndianAlma materSt. John's, CambridgeParentCowasji Jehangir, 1st Bt. (father) Sir Cowasji Jehangir, 2nd Baronet, GBE, KCIE (16 February 1879 – 17 October 1962) was a prominent member of the Bombay Parsi community. He was the son of Sir Jeha...

Kembali kehalaman sebelumnya