# How is data physically held in computer memory?

**URL:** <https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021>\
**Category:** Factual Questions\
**Created:** [January 6, 2004, 3:50pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021 "2004-01-06T15:50:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scarf-Ace](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Scarf-Ace](https://boards.straightdope.com/u/Scarf-Ace)\
**Post date:** [January 6, 2004, 3:50pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/1 "2004-01-06T15:50:57Z")

</div>

I know that electric pulses or whatnot represent binary numbers in computers, but how is this physically accomplished in RAM or on disk?

---

<div class="post-metadata">

**Author:** ![GorillaMan](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@GorillaMan](https://boards.straightdope.com/u/GorillaMan)\
**Post date:** [January 6, 2004, 4:27pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/2 "2004-01-06T16:27:11Z")

</div>

There’s a hefty explanation of memory here: [http://140.125.32.249/CO/Ch\_05.pdf](http://140.125.32.249/CO/Ch_05.pdf)

Basically, a single-bit memory circuit, i.e. capable of storing one binary digit as 0 or 1, is a setup of two transistors. The circuit has two inputs: a pulse into one sets the output to “1”, where it stays until a pulse into the other input switches this to “0”. Put 8 of these in line and you have a byte, put 1024 bytestogether and you have a KB, etc.

Not sure about how it works on disc, though.

---

<div class="post-metadata">

**Author:** ![Matchka](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Matchka](https://boards.straightdope.com/u/Matchka)\
**Post date:** [January 6, 2004, 4:32pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/3 "2004-01-06T16:32:12Z")

</div>

From what I remember from computer class (1984–when the Commodore 64 was the machine of the future):

The storage medium is composed of magnetic “switches.” Each switch has a magnetic state of ON or OFF which translates into 1 and 0 for purposes of binary computer language. I seem to remember each bubble being called a BIT–16 BITs to a BYTE.

All your programs are ultimately coded into binary from whatever program language you are using–so you enter your list of Pascal commands (which humans can readily understand), the program compiles/translates them into binary (which the computer understands), and when you save your list of commands as a file, it is saved as a file in binary format on the above described medium…all in 0s & 1s.

I also seem to remember that cosmic rays, small magnetic fields, gnomes, 1920’s style death rays, etc. can change the ON/OFF state of a BIT at random–which corrupts the program like a DNA mutation. To fix this, the BITs were/are arranged in clusters of 3 so that the computer can check for and correct for such errors, but the nature of that particular mechanism eludes me now.

'Course, it could all be different now. Microsoft has yet to patent 0s & 1s (contrary to _Onion_ reports to the contrary.

---

<div class="post-metadata">

**Author:** ![Small\_Clanger](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Small\_Clanger](https://boards.straightdope.com/u/Small_Clanger)\
**Post date:** [January 6, 2004, 4:52pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/4 "2004-01-06T16:52:11Z")

</div>

OK  
“static” RAM.  
An individual bit 1 or 0 is held in an arrangement of transistors called a flip-flop which can be switched/flipped into two stable states. One represents 1 the other 0. To read the data you just measure what state the flip-flop is in, to write data you apply a voltage to one side or the other to switch it to that state.

“dynamic” RAM.  
(If I remember right) Each bit is held as an electric charge which has to be refreshed before it drains away. The read/refresh cycle is built in. This uses fewer transistors per bit, so it’s cheaper than static RAM. Most of the memory in a PC will be dynamic RAM.

When the power goes for either type off all the information is lost.

On disc bits are stored as tiny regions of magnetised stuff (what is it guys?) sort of like video/audio tape and it’s written/read with something(s) resembling a stack of teeny-weeny tape deck heads.

_Really_ important information is stored on post-it notes stuck to the sides of the monitor.

---

<div class="post-metadata">

**Author:** ![Bytegeist](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Bytegeist](https://boards.straightdope.com/u/Bytegeist)\
**Post date:** [January 6, 2004, 5:12pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/5 "2004-01-06T17:12:18Z")

</div>

> [@](#):
>
> \*Originally posted by Meta-Gumble \*  
> \*\*I know that electric pulses or whatnot represent binary numbers in computers, but how is this physically accomplished in RAM or on disk? \*\*

The two technologies are very different. [Here’s a decent page](http://computer.howstuffworks.com/ram1.htm) explaining the low-level operation of RAM. Roughly speaking, each bit is an assembly of several logic gates (NAND gates mostly, if I remember right) that collectively maintain a high or low voltage, which state can be read or written from the outside.

There are also two alternate technologies here: dynamic and static RAM. In dynamic RAM the bit states need to be refreshed repeatedly, otherwise they dissipate in a wash of electronic noise. In static RAM the bits maintain their state indefinitely, as long as the power is on.

In contrast, disk bits are represented by small magnetic particles on the disk media that can be oriented in either of two directions. The disk read-write head then has the ability to sense the direction as well as change it. [Here’s a page](http://computer.howstuffworks.com/floppy-disk-drive3.htm) that more or less explains the process.

As to which physical states, in either technology, represent which bit values, this of course is completely arbitrary. For example, I believe high voltage in RAM generally means “one”, and low means “zero”, but I don’t know for sure that that’s the universal convention.

---

<div class="post-metadata">

**Author:** ![minor7flat5](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/minor7flat5/32/258_2.png) [@minor7flat5](https://boards.straightdope.com/u/minor7flat5)\
**Post date:** [January 6, 2004, 5:35pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/6 "2004-01-06T17:35:00Z")

</div>

You mean it isn’t stored as ripples in a [mercury delay line](http://en2.wikipedia.org/wiki/Delay_line_memory) anymore? 😃

---

<div class="post-metadata">

**Author:** ![rodent](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@rodent](https://boards.straightdope.com/u/rodent)\
**Post date:** [January 6, 2004, 6:53pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/7 "2004-01-06T18:53:49Z")

</div>

From How Stuff Works:

Flash memory is the essential component in solid-state hard disks and digital cameras. It retains data even when the power source is disconnected. Without this type of memory, you’d have to reload your data each time you shut down your computer. Learn all about the memory that never forgets.

> **[How Flash Memory Works](https://computer.howstuffworks.com/flash-memory.htm)**
>
> Unlike conventional hard drives, flash memory has no moving parts to break. And it can be used in smaller spaces, such as a pocket camera or cell phone. So why use anything else?

[Flash Memory](http://computer.howstuffworks.com/flash-memory.htm)

---

<div class="post-metadata">

**Author:** ![Patty\_O\_Furniture](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@Patty\_O\_Furniture](https://boards.straightdope.com/u/Patty_O_Furniture)\
**Post date:** [January 6, 2004, 8:22pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/8 "2004-01-06T20:22:33Z")

</div>

> [@](#):
>
> contrary to Onion reports to the contrary.

Congratulations! Please step forward to receive your certificate of redundancy certificate. 😃

---

<div class="post-metadata">

**Author:** ![Fear\_Itself](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/fear_itself/32/19637_2.png) [@Fear\_Itself](https://boards.straightdope.com/u/Fear_Itself)\
**Post date:** [January 6, 2004, 9:04pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/9 "2004-01-06T21:04:14Z")

</div>

> [@](#):
>
> \*Originally posted by minor7flat5 \*  
> \*\*You mean it isn’t stored as ripples in a [mercury delay line](http://en2.wikipedia.org/wiki/Delay_line_memory) anymore? 😃 \*\*

Heck no, we all upgraded to [Core Memory](http://www.psych.usyd.edu.au/pdp-11/core.html) years ago!

_The first computer I programmed was a CDC 3300 with 96k of core memory!_

---

<div class="post-metadata">

**Author:** ![GorillaMan](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@GorillaMan](https://boards.straightdope.com/u/GorillaMan)\
**Post date:** [January 6, 2004, 9:11pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/10 "2004-01-06T21:11:30Z")

</div>

> [@](#):
>
> \*Originally posted by Fear Itself \*  
> \*\*Heck no, we all upgraded to [Core Memory](http://www.psych.usyd.edu.au/pdp-11/core.html) years ago!
> 
> _The first computer I programmed was a CDC 3300 with 96k of core memory!_ \*\*

Well I’m well past you guys, I’m on pen-and-paper…and backing it up takes no time when I scan it into my computer…

---

<div class="post-metadata">

**Author:** ![tdn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@tdn](https://boards.straightdope.com/u/tdn)\
**Post date:** [January 6, 2004, 10:10pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/11 "2004-01-06T22:10:24Z")

</div>

> [@](#):
>
> \*Originally posted by Matchka \*  
> **The storage medium is composed of magnetic "switches."**

Right on.

> [@](#):
>
> **Each switch has a magnetic state of ON or OFF which translates into 1 and 0 for purposes of binary computer language.**

Yo.

> [@](#):
>
> **I seem to remember each bubble being called a BIT–16 BITs to a BYTE.**

Word.

---

<div class="post-metadata">

**Author:** ![Bytegeist](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Bytegeist](https://boards.straightdope.com/u/Bytegeist)\
**Post date:** [January 6, 2004, 10:24pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/12 "2004-01-06T22:24:48Z")

</div>

Silly me, I overlooked the [Tinkertoy computer](http://www.amazon.com/exec/obidos/ASIN/071672491X/002-8011742-4800833). If you’re using one of those, then the bits are represented by those little orange pegs with a green flag stuck in one end.

---

<div class="post-metadata">

**Author:** ![Eleusis](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Eleusis](https://boards.straightdope.com/u/Eleusis)\
**Post date:** [January 6, 2004, 10:39pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/13 "2004-01-06T22:39:11Z")

</div>

> [@](#):
>
> I seem to remember each bubble being called a BIT–16 BITs to a BYTE.

8 bits make a byte

---

<div class="post-metadata">

**Author:** ![GorillaMan](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@GorillaMan](https://boards.straightdope.com/u/GorillaMan)\
**Post date:** [January 6, 2004, 10:41pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/14 "2004-01-06T22:41:38Z")

</div>

2 bytes = 1 word

---

<div class="post-metadata">

**Author:** ![Eleusis](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Eleusis](https://boards.straightdope.com/u/Eleusis)\
**Post date:** [January 6, 2004, 10:42pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/15 "2004-01-06T22:42:16Z")

</div>

> [@](#):
>
> \*Originally posted by Eleusis \*  
> \*\*8 bits make a byte \*\*

Meh, 8 bits apparently _usually_ make a byte.

> [@](#):
>
> The number of bits in a byte is fixed for a given data processing system, and usually is eight.

[http://www.ncits.org/tc\_home/k5htm/b2.htm](http://www.ncits.org/tc_home/k5htm/b2.htm)

---

<div class="post-metadata">

**Author:** ![Matchka](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Matchka](https://boards.straightdope.com/u/Matchka)\
**Post date:** [January 6, 2004, 11:56pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/16 "2004-01-06T23:56:12Z")

</div>

8 bits there are to a byte, and the number of bits to a byte is 8. 9 bits there are not, nor either are there 7 unless you then count an 8th. 10 are right out …

---

<div class="post-metadata">

**Author:** ![Algorithm](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/algorithm/32/12204_2.png) [@Algorithm](https://boards.straightdope.com/u/Algorithm)\
**Post date:** [January 7, 2004, 12:39am UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/17 "2004-01-07T00:39:39Z")

</div>

**tdn** , your post made me wet my pants.

---

<div class="post-metadata">

**Author:** ![dakravel](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@dakravel](https://boards.straightdope.com/u/dakravel)\
**Post date:** [January 7, 2004, 2:46am UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/18 "2004-01-07T02:46:23Z")

</div>

> [@](#):
>
> 2 bytes = 1 word

The size of a word is architecture specific. 2 byte words were used by the 486s. I’m not sure if the current Intel chips even have a common word size, since the size of their commands can be anywhere from 3 to 20 something bytes.

---

<div class="post-metadata">

**Author:** ![Scarf-Ace](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Scarf-Ace](https://boards.straightdope.com/u/Scarf-Ace)\
**Post date:** [January 7, 2004, 1:17pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/19 "2004-01-07T13:17:53Z")

</div>

Heh thats a good link Bytegeist, now I know…

So with the magnetic stuff, is a bit a physical particle on the disk surface? How is it read/ written?

---

<div class="post-metadata">

**Author:** ![Chicago\_Faucet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chicago_faucet/32/13910_2.png) [@Chicago\_Faucet](https://boards.straightdope.com/u/Chicago_Faucet)\
**Post date:** [January 7, 2004, 2:02pm UTC](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021/20 "2004-01-07T14:02:59Z")

</div>

4 bits equal a nibble.

[Next page](https://boards.straightdope.com/t/how-is-data-physically-held-in-computer-memory/223021.md?page=2)
