Chapter 1 - Introduction To File Structures PDF
Chapter 1 - Introduction To File Structures PDF
Introduction
Introduction to
to File
File Organization
Organization
Data processing from a computer science perspective:
1
– Storage of data
Introduction to File Structures
– Organization of data
– Access to data
This will be built on your knowledge of
Data Structures
Representation of Data
Introduction to File Structures
+
Operations for accessing data
Difference:
– Data Structures deal with data in main memory
– File Structures deal with data in secondary storage
device (File).
CPU Differences
Introduction to File Structures
Registers Fast
Cache Small
Expensive
Volatile
RAM
Main Memory
(Semiconductor) Slow
Large
Disk, Tape, Cheap
Second Storage
DVD-R Stable
Overview
Overviewof ofFile
FileStructure
StructureDesign
Design
I.I.General
GeneralGoals
Goals
1
Introduction to File Structures
As files grew very large, unaided sequential access was not a good
1
solution.
Disks allowed for direct access.
Introduction to File Structures
9
– Main memory: ~120 nanoseconds = 120 u 10
Introduction to File Structures
6
– Magnetic Disks: ~30 milliseconds = 30 u 10
An analogy keeping same time proportion as above
– Looking at the index of a book: 20 seconds
versus
– Going to the library: 58 days
– Sequential access
– Access cost proportional to size of file
Introduction to File Structures