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:

Makam Bellmer dan Zurn di Pemakaman Père Lachaise Hans Bellmer (13 Maret 1902 – 24 Februari 1975) merupakan seorang seniman Jerman, yang terkenal karena boneka wanita puber seukuran aslinya yang dia produksi pada pertengahan 1930-an. Para sejarawan seni dan fotografi juga menganggapnya sebagai fotografer surealisme. Daftar pustaka Die Puppe, 1934. La Poupée, 1936. (Translated to French by Robert Valançay) Trois Tableaux, Sept Dessins, Un Texte, 1944. Les Jeux de la Poupée, 1944. (Text b...

 

 

Bagian dari sebuah serial tentangPenganiayaan GerejaKatolik di era modern Ikhtisar Sejarah Penganiayaan terhadap Umat Kristiani Penganiayaan Gereja Katolik 1939–1958 Pemberantasan Gereja Katolik di bawah Stalinisme Penganiayaan Katolik Timur Penganiayaan terhadap umat Katolik di era modern Kekaisaran Romawi Penganiayaan terhadap umat Kristiani di Kekaisaran Romawi Penindasan Diokletianus Kekaisaran Neo-Persia Penaklukan Yerusalem oleh Sasaniyah Kekaisaran Bizantium Pembantaian orang-orang L...

 

 

Halaman ini berisi artikel tentang seri komedi televisi Britania Raya. Untuk karakternya, lihat Mr. Bean (karakter). Untuk episode pertamanya, lihat Mr. Bean (episode Mr. Bean).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: Mr. Bean – berita · surat kabar · buku ...

Sheriff in New Mexico, US (1865–1945) Elfego BacaElfego Baca in 1883Born(1865-02-10)February 10, 1865Socorro, New Mexico TerritoryDiedAugust 27, 1945(1945-08-27) (aged 80)Albuquerque, New MexicoOccupation(s)Gunfighter, sheriff, lawyer, politicianPolitical partyRepublican PartyFamily Hispanos of New Mexico Baca family of New Mexico Elfego Baca (February 10, 1865 – August 27, 1945) was a gunfighter, law enforcement officer, lawyer, and politician in New Mexico, who became an American f...

 

 

2023–2024 concert tour by Yoasobi Yoasobi Asia Tour 2023–2024Tour by YoasobiSeoul promotional posterLocationAsiaAssociated albumsThe Book 3Start dateDecember 1, 2023 (2023-12-01)End dateJanuary 21, 2024 (2024-01-21)Legs1No. of shows8Attendance42,000Yoasobi concert chronology Denkōsekka Arena Tour(2023) Yoasobi Asia Tour(2023–2024) Pop Out Zepp Tour(2024) The Yoasobi Asia Tour 2023–2024 was the second headlining concert tour and first overseas by Japanese...

 

 

Specially designated road or waterway of interest For the film, see Scenic Route (film). Holiday road redirects here. For the Lindsey Buckingham song, see Holiday Road. Scenic highway redirects here. For roads known as the Scenic Highway, see U.S. Route 6 in Massachusetts and Georgia State Route 124. The examples and perspective in this article may not represent a worldwide view of the subject. You may improve this article, discuss the issue on the talk page, or create a new article, as appro...

1895 massacre in Fujian, China Major victims of Kucheng Massacre The Kucheng massacre (Chinese: 古田敎案; Pinyin: Gǔtián Jiào'àn; Foochow Romanized: Kŭ-chèng Gáu-áng) was a massacre of Western Christians that took place at Gutian (at that time known in the west as Kucheng), Fujian, China on August 1, 1895. At dawn of that day, a fasting folk religious group attacked British missionaries who were then taking summer holidays at Gutian Huashan, killing eleven people and destroyin...

 

 

Patung Bodhisattva Maitreya Buddha dari abad ke-11 ditemukan di Kathmandu. Patung Nepal banyak menarik pengaruh dari patung dan gaya artistik India, terutama dari daerah Pala dan Gupta.[1] Sebagian besar patung-patung Nepal yang masih ditemukan saat ini menggambar tokoh keagamaan dan motif-motif, yang terinspirasi dari Hindu dan Buddha, dikarenakan kedua agama tersebut telah dianut oleh masyarakat Nepal secara berdampingan selama lebih dari dua ribu tahun.[1] Meskipun patung-p...

 

 

14th-century Persian historian Copy of Wassaf's Tarikh-i Wassaf, created in 17th-century Safavid Iran Wassaf or Vassaf (Persian: عبدالله ابن فضل‌الله شرف‌الدین شیرازی) Abdallah ibn Faḍlallah Sharaf al-Din Shīrāzī (fl. 1265–1328) was a 14th-century Persian historian of the Ilkhanate. Waṣṣāf, sometimes lengthened to Waṣṣāf al-Ḥaḍrat or Vassaf-e Hazrat (Persian: وصّافِ حضرت), is a title meaning Court Panegyrist.[1][2&#...

John R. Cox redirects here. For the actor born John Richard Cox Jr., see John Howard (American actor). 2012 United States House of Representatives election in Alaska ← 2010 November 6, 2012 2014 →   Nominee Don Young Sharon Cissna Jim McDermott Party Republican Democratic Libertarian Popular vote 185,296 82,927 15,028 Percentage 63.9% 28.6% 5.2% Results by state house districtYoung:      50–60%      60–70% ...

 

 

Organolead compound Tetraethyllead Names Preferred IUPAC name Tetraethylplumbane Other names Lead tetraethyl Tetraethyl lead Tetra-ethyl lead Identifiers CAS Number 78-00-2 Y 3D model (JSmol) Interactive image Abbreviations TEL Beilstein Reference 3903146 ChEBI CHEBI:30182 Y ChemSpider 6265 Y ECHA InfoCard 100.000.979 EC Number 201-075-4 Gmelin Reference 68951 MeSH Tetraethyl+lead PubChem CID 6511 RTECS number TP4550000 UNII 13426ZWT6A Y UN number 1649 CompTox Dashboard (E...

 

 

Prime Minister of Moldova from 2013 to 2015 Iurie LeancăORLeancă in 20139th Prime Minister of MoldovaIn office30 May 2013 – 18 February 2015PresidentNicolae TimoftiDeputy See list Natalia GhermanValeriu LazărEugen CarpovTatiana PotîngAndrian Candu Preceded byVladimir FilatSucceeded byChiril GaburiciLeader of the European People's PartyIn office26 July 2015 – 26 July 2019Succeeded byEugen Sturza (acting)Deputy Prime Minister of Moldova for European IntegrationIn offic...

Nonprofit alternative college in Portland, Oregon A major contributor to this article appears to have a close connection with its subject. It may require cleanup to comply with Wikipedia's content policies, particularly neutral point of view. Please discuss further on the talk page. (December 2019) (Learn how and when to remove this message) Wayfinding CollegeLocationPortland, Oregon, United States45°35′26.5″N 122°45′2.4″W / 45.590694°N 122.750667°W / 45.59...

 

 

FERMIAC, atau Monte Carlo trolley, merupakan peralatan analog yang ditemukan oleh Enrico Fermi untuk menerapkan studi transportasi neutron. FERMIAC, atau Monte Carlo trolley, merupakan komputer analog yang ditemukan oleh ahli fisika Enrico Fermi untuk membantu penerapan studi transportasi neutron. Operasi FERMIAC menggunakan metode Monte Carlo untuk memodelkan transport neutron dalam berbagai jenis sistem nuklir. Dengan diberikan distribusi awal neutron, tujuan proses tersebut adalah mengemba...

 

 

SMA Negeri 6 SurakartaInformasiDidirikan1985JenisSekolah NegeriAkreditasiA[1]Nomor Pokok Sekolah Nasional20327971Kepala SekolahDrs. Narman, MMKetua KomiteH. SuharsoJurusan atau peminatanIPA, IPS, BahasaRentang kelasX MIA, X IIS, X IBB, XI MIA, XI IIS, XI IBB, XII IPA, XII IPS, XII BHSKurikulumKurikulum 2013AlamatLokasiJl. Mr. Sartono No. 30 Surakarta, Surakarta, Jawa Tengah,  IndonesiaTel./Faks.0271-853209Koordinat7°33'3S 110°49'51ESitus webwww.sman6surakarta.sch...

Grand Prix PasifikGrand Prix Sepeda MotorTempatTwin Ring MotegiLomba pertama2000Lomba terakhir2003Terbanyak menang(pengendara)Toni Elías (2)Terbanyak menang(pabrikan)Aprilia, Honda (5) Grand Prix Sepeda Motor Pasifik adalah putaran kejuaraan Grand Prix Sepeda Motor FIM yang berlangsung dari musim 2000 hingga 2003. Pemenang Grand Prix Pasifik Pemenang terbanyak (pembalap) # Menang Pembalap Menang Kategori Tahun menang 2 Toni Elías 250 cc 2002, 2003 Pemenang terbanyak (manufaktur) # Menang Ma...

 

 

American journalist (1928–2019) Robert BoydBornRobert Skinner Boyd(1928-01-28)January 28, 1928Chicago, Illinois, USDiedSeptember 20, 2019(2019-09-20) (aged 91)Philadelphia, Pennsylvania, USNationalityAmericanEducationB.A. and M.A., Harvard UniversityOccupation(s)Journalist and bureau chiefEmployerKnight Newspaper GroupSpouse Gloria L. Paulsen ​(m. 1949)​Children4AwardsPulitzer Prize, 1973 Robert Skinner Boyd (January 11, 1928 – September 20, 2019) was an ...

 

 

خربة الدير   الإحداثيات 31°39′20″N 35°01′30″E / 31.655555555556°N 35.025°E / 31.655555555556; 35.025   تقسيم إداري  البلد دولة فلسطين  التقسيم الأعلى محافظة الخليل  معلومات أخرى منطقة زمنية ت ع م+02:00 (توقيت قياسي)،  وت ع م+03:00 (توقيت صيفي)  تعديل مصدري - تعديل   خربة الدير �...

Election for the governor of Montana, USA For related races, see 1956 United States gubernatorial elections. 1956 Montana gubernatorial election ← 1952 November 6, 1956 1960 → Turnout83.20%2.50[1]   Nominee J. Hugo Aronson Arnold Olsen Party Republican Democratic Popular vote 138,878 131,488 Percentage 51.37% 48.63% County resultsAronson:      50–60%      60–70%Olsen:      50...

 

 

Municipal building in Corbridge, Northumberland, England Corbridge Town HallCorbridge Town HallLocationPrinces Street, CorbridgeCoordinates54°58′27″N 2°01′02″W / 54.9742°N 2.0172°W / 54.9742; -2.0172Built1887ArchitectFrank EmleyArchitectural style(s)English Renaissance style Listed Building – Grade IIOfficial nameTown Hall with shopsDesignated15 April 1969Reference no.1044757 Shown in Northumberland Corbridge Town Hall is a municipal building in Prin...