Buffer

Disambiguazione – Se stai cercando altri significati, vedi Buffer (disambigua).

In informatica, un buffer, in italiano tampone, memoria di transito o anche memoria intermediaria, è una zona di memoria usata per compensare differenze di velocità nel trasferimento o nella trasmissione di dati, oppure per velocizzare l'esecuzione di alcune operazioni come ad esempio le operazioni sulle stringhe di caratteri.

Applicazioni

Un buffer può essere realizzato sia con l'hardware, per mezzo di circuiti dedicati, sia con il software, riservando una parte della memoria ai dati da manipolare; nei moderni sistemi sono presenti entrambi i metodi, anche se viene preferita la soluzione software per la sua semplicità di implementazione e prestazione.

Sistemi di elaborazione

I dati possono essere ricevuti da o spediti verso periferiche esterne al computer.

Il buffer è utilizzato per la comunicazione fra componenti che lavorano a velocità differenti. Ad esempio se la CPU, che lavora ad alta velocità, deve spedire alcuni dati alla stampante, la quale supporta una velocità molto minore, scriverà tali dati nel buffer di memoria, potendo così continuare a lavorare a un altro processo mentre la stampante può stampare il dato leggendolo dal buffer e non interrompendo la CPU. Viceversa, se la CPU è impegnata in lavori gravosi, potrebbe "perdere" alcuni input se non fossero salvati in un buffer e poi prelevati dal processore.

Networking

I buffer sono necessari per coprire i tempi di latenza dei collegamenti di rete. Due dispositivi che devono inviarsi grandi quantità di dati, in un sistema monodirezionale, dovranno salvare i dati da inviare in un buffer, per poi inviarli quando il canale è libero.

Questa tecnica è fondamentale per il funzionamento di apparati di rete intelligenti, come uno switch. Se più canali convogliano il traffico verso un solo switch, questo è costretto a salvare temporaneamente tutti i dati in arrivo in un buffer, svuotandolo a mano a mano che i dati vengono inviati.

Software

Lo stesso argomento in dettaglio: Buffer overflow.

I buffer software possono essere utilizzati a un livello più alto dai software, solitamente quando sono in attesa di eventi esterni (come l'inserimento di dati da tastiera).

L'utilizzo di buffer nei software li espone, se non adeguatamente protetti, ad attacchi che causano buffer overflow bloccando il programma o il sistema.

Algoritmi e tecniche

La memorizzazione in buffer avviene principalmente attraverso l'utilizzo di code (FIFO) o più raramente di pile (LIFO). Una struttura a coda permette l'ottimizzazione della sequenza di invio dei dati. Nelle reti, spesso è associata ad algoritmi di priorità, per inviare per primi i dati definiti come "più importanti".

Differenze fra buffer e cache

  • I buffer vengono utilizzati da processi che devono effettuare operazioni di input/output (esempio frame buffer che è la memoria che registra i pixel degli schermi LCD). Molte volte i buffer vengono utilizzati come file di output.
  • La cache è frequentemente utilizzata come disco di I/O, in modo tale da permettere a più processi che necessitano dello stesso file di accedervi contemporaneamente, venendo tale file copiato in cache in modo tale da velocizzare le operazioni: essa, infatti, è una memoria ad accesso rapidissimo, molto più veloce della RAM, ma anche con un costo fisico più elevato di quello della RAM, pertanto la sua capienza è sempre piuttosto limitata (da 1 MB nei masterizzatori a 64 MB negli hard disk).

Buffer nel mondo analogico

Lo stesso argomento in dettaglio: Amplificatore separatore.

Questi circuiti separano un'area ad alta impedenza da una restante parte del sistema la cui impedenza è bassa e potrebbe caricare in un modo inaccettabile.

Voci correlate

Altri progetti

Collegamenti esterni

  Portale Informatica: accedi alle voci di Wikipedia che trattano di Informatica
Controllo di autoritàLCCN (ENsh89003911 · GND (DE4176324-5 · J9U (ENHE987007553763705171

Read other articles:

Greek naval officer (born 1962) 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. (April 2022) Konstantinos KarageorgisBorn (1962-02-23) 23 February 1962 (age 62)Athens, GreeceAllegiance GreeceService/branch Hellenic NavyRankVice AdmiralUnit1979 -Commands held Commander in Chief of the Hellenic Fleet HS PANAGOPOULOS III Vice Admiral Konstantinos Karageorgis (Greek: Κωνσ…

Le informazioni riportate non sono consigli medici e potrebbero non essere accurate. I contenuti hanno solo fine illustrativo e non sostituiscono il parere medico: leggi le avvertenze. Struttura base delle benzodiazepine Le benzodiazepine (spesso abbreviate BZD o BDZ) sono una classe di psicofarmaci la cui struttura chimica è composta dalla fusione di un anello benzenico e un anello diazepinico. La prima benzodiazepina, il clordiazepossido (Librium), è stata scoperta casualmente da Leo Sternba…

هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (أبريل 2023) يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة م…

Cheese in the TrapPoster rilis teatrikalSutradaraKim Je-youngProduserHwang Ji-sunSkenarioSoonkkiKim Jun-ahBerdasarkanCheese in the Trapoleh SoonkkiPemeranPark Hae-jinOh Yeon-seoPark Ki-woongPerusahaanproduksiMountain Movement StoryDistributorLittle Big Pictures[1]Tanggal rilis14 Maret 2018Durasi116 menitNegaraKorea SelatanBahasaKoreaPendapatankotorUS$1,8 juta[2] Cheese in the Trap (Hangul: 치즈 인 더 트랩) adalah film romansa Korea Selatan tahun 2018 yang dibintang…

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: Maastricht Rebels – news · newspapers · books · scholar · JSTOR (September 2017) (Learn how and when to remove this message) Part of a series of articles onUK membershipof the European Union(1973–2020) Accession Treaty of Accession 1972 1972 EC Act 1973 enlargem…

Meteorological agency of the Government of India India Meteorological DepartmentAgency overviewFormed15 January 1875 (15 January 1875)TypeGovernment agencyJurisdictionGovernment of IndiaHeadquartersMausam Bhavan, Lodhi Road, New DelhiAnnual budget₹514.03 crore (US$62 million) (2022)[1]Ministers responsibleKiren Rijiju, Union Minister of Earth SciencesM Ravichandran, Secretary, Ministry of Earth SciencesAgency executiveMrutyunjay Mohapatra, Director General of MeteorologyParen…

SoamiNama lainKasoami, sangkolaSajianUtamaTempat asalIndonesiaDaerahSulawesi TenggaraDibuat olehSuku Wakatobi, Buton dan MunaSuhu penyajianPanas atau suhu ruanganBahan utamaSingkongSunting kotak info • L • BBantuan penggunaan templat ini Soami, Kasoami atau sangkola adalah makanan pokok Orang Wakatobi,Makanan ini menjadi makanan khas daerah Sulawesi Tenggara (Wakatobi, Muna dan Kabupaten Buton). Soami memiliki arti makanan dari ubi kayu yang diolah dengan uap panas (soa).[1]…

Style of British literature Not to be confused with State of Augestan. For the period of Latin literature for which the English design is named, see Augustan literature (ancient Rome). This article possibly contains original research. Please improve it by verifying the claims made and adding inline citations. Statements consisting only of original research should be removed. (March 2012) (Learn how and when to remove this message) The Distrest Poet, William Hogarth's portrait of a Grub Street po…

Architecture of off-planet habitable structures This article is about inhabited structures in space and architectural methodologies applied to human spacecraft design. For mission architecture of spaceflights, see Spaceflight mission architecture. A 1990 artist rendering of Space Station Freedom, a project that eventually evolved into the International Space Station Space architecture is the theory and practice of designing and building inhabited environments in outer space.[1] This miss…

City in Iowa, United StatesTabor, IowaCityLocation of Tabor, IowaCoordinates: 40°53′42″N 95°40′25″W / 40.89500°N 95.67361°W / 40.89500; -95.67361Country United StatesState IowaCountiesFremont, MillsArea[1] • Total1.29 sq mi (3.35 km2) • Land1.29 sq mi (3.35 km2) • Water0.00 sq mi (0.00 km2)Elevation[2]1,240 ft (380 m)Population (2020) …

Scottish mathematician and physicist (1766–1832) For other people named John Leslie, see John Leslie (disambiguation). John LeslieJohn LeslieBorn10 April 1766 (1766-04-10)Largo, FifeDied3 November 1832 (1832-11-04) (aged 66)NationalityBritishKnown forStudies of heat Leslie cubeAwardsRumford Medal (1804)Scientific careerFieldsMathematics Physics Sir John Leslie by Sir John Steell Sir John Leslie, FRSE KH (10 April 1766 – 3 November 1832) was a Scottish mathematician and ph…

Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Maio de 2022)  Nota: Para outros significados, veja Pão (desambiguação). PãoTipo alimento básicobaked good (d)Bánh (en)tipo de comida ou prato (d)CaracterísticasMaterial água, farinha e sal de cozinhaTécnica bakin…

Old West American sheriff Mysterious Dave MatherDavid Allen Mysterious Dave Mather posed for his only known photograph sometime during his term as Assistant Marshal of Dodge City (June 1, 1883 – April 10, 1884)BornDavid Allen MatherAugust 10, 1851Saybrook, Connecticut, U.S.Diedbetween June 2, 1885 and Oct. 1887 (aged 33–36)Possibly TexasOccupationsLawmanbuffalo hunterhired gunYears active1870s–1885 David Allen Mather (August 10, 1851 – unknown), also known by the nickname Myste…

عملية استخلاص المعلومات أو الإستجواب، هي عملية تلقي تفسير أو توضيح دراسة ما بعد المشاركة الكاملة.[1] استخلاص المعلومات العسكرية استخلاص المعلومات على متن يو اس اس رونالد ريغان (CVN-76) نشأ استخلاص المعلومات في العسكرية، حيث استخدم هذا النوع من الإستخلاص لتلقي المعلومات من …

هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (يونيو 2023) الحَيَّوم[1][2][3] أو التجمع الأحيائي[4] أو المَوطنٌ البِيئي[2]&#…

John Magufuli Presiden Tanzania ke–5Masa jabatan5 November 2015 – 17 Maret 2021Perdana MenteriKassim MajaliwaWakil PresidenSamia SuluhuPendahuluJakaya KikwetePenggantiSamia Suluhu Informasi pribadiLahirJohn Pombe Magufuli(1959-10-29)29 Oktober 1959Chato, TanzaniaMeninggal17 Maret 2021(2021-03-17) (umur 61)Dar es Salaam, TanzaniaPartai politikChama Cha MapinduziSuami/istriJaneth MagufuliAnak2Alma materUniversitas Dar es SalaamSunting kotak info • L • B John Pom…

Employees Retirement System of Texas Employees Retirement System of Texas (ERS) is an agency of the Texas state government.[1] ERS was created in 1947.[2] It oversees retirement benefits of state employees.[3] It is headquartered at 200 E 18th Street in Austin, Texas.[4] It is currently managed by CIO Tom Tull.[5] Funding As of 2020, the total unfunded liabilities of ERS is $14.7 billion.[6] References ^ Force, United States Congress House Committe…

The Man from Bitter RootsPoster filmSutradaraOscar ApfelProduserWilliam FoxDitulis olehOscar ApfelBerdasarkannovel The Man from Bitter Roots karya Caroline LockhartPemeranWilliam Farnum Slim WhitakerSinematograferAlfred GandolfiHarry W. GerstadJ.C. CookTanggal rilis 3 Juli 1916 (1916-07-03) Durasi50 menitNegaraAmerika SerikatBahasaAntarjudul Inggris The Man from Bitter Roots adalah sebuah film koboi Amerika Serikat bisu tahun 1916 yang hilang[1] garapan Oscar Apfel dan menampilkan W…

Arizona Air National GuardEmblem of the Arizona Air National GuardActive12 December 1946 – presentCountry United StatesAllegiance ArizonaBranch United States Air ForceType Air National GuardRoleTo meet state and federal mission responsibilities.Part ofArizona National GuardUnited States National Guard BureauNational GuardGarrison/HQJoint Force Headquarters, 5636 E McDowell Road, PhoenixCommandersCivilian leadershipPresident Joe Biden(Commander-in-Chief)Frank Kendall III(Sec…

Protein-coding gene in the species Homo sapiens KLF2IdentifiersAliasesKLF2, LKLF, Kruppel-like factor 2, Kruppel like factor 2External IDsOMIM: 602016; MGI: 1342772; HomoloGene: 133978; GeneCards: KLF2; OMA:KLF2 - orthologsGene location (Human)Chr.Chromosome 19 (human)[1]Band19p13.11Start16,324,826 bp[1]End16,328,685 bp[1]Gene location (Mouse)Chr.Chromosome 8 (mouse)[2]Band8|8 B3.3Start73,072,877 bp[2]End73,075,500 bp[2]RNA expression patternB…