Title: Storage Devices
1Storage Devices
2??????? Program ??? Data
Secondary Storage
????
????????????????
????????????????????????????
Primary Storage
????????
3???????????????????? Secondary Storages
????????Files
4????????? Files
- Executable Program File
- Graphics File
- Audio File
- Video File
- ASCII File
- Data File
- Document File
- Spreadsheet File
- Source Program File
5?????????? File (File Accessing)
- Sequential Accessing
- Direct Accessing (Random Accessing)
6????????????????????????
- Batch Processing
- Transaction Processing
7Batch Processing
- ????????????????????????????????? ??????????????
- ???????????? 2 files
- master file
- transaction file
- ???????? ?????????????????????
8Transaction Processing
- ?????????????????????????????????????
???????????? real time - ??????????????????? real time ????????????????
-????? ?????????????????????????? ????????????
online
9???????? Batch Processing
- ??????????????
- ???????
- ???????????????????????????????????
10?????????? Batch Processing
11???????? Transaction Processing
12?????????? Transaction Processing
- ?????????
- ????????????????????????????????
- ??????????????? online
- ???????????
13Batch ???? Transaction Processing?
- ???????????????????????????????????
14Secondary Storages
- ??????????????????????? Primary Storage
15??????????????? Secondary storages
- ??????????????????
- ??????? (Economy)
- ?????????????????? (Reliability)
- ????? (Convenience)
16????????? Secondary Storages
- Sequential Access
- Magnetic Tape Storage
17????????? Secondary Storages
- Random Access (Direct Access)
- Magnetic Disk
- CD Rom
- Magneto Opitcal Disk
18????????????????????? Tape
- ???????????????? sequential
- ???????
- ????????
- ?????????
19???????????????????? Tape
- ??????????????? batch processing
- ??????????????????? (backup)
20Magnetic Disk Storage
- ?????????????????????????????? direct access
- ????????????????????????????? bits
21????????? Magnetic Disk Storage
- Floppy Disk
- Hard magnetic Disk
22??????????????????Floppy Disk ??? Harddisk
23Tracks
track 80
track 00
24Sectors
sector 01
sector 00
25Clusters
cluster
26Clusters
- ??? sectors ????????????? ?????????? sectors
?????? - ?????????????????????????????????????????????
- ????? cluster ?????????????????????? ??????????
track ??????? track ??
27??????????????? Disk ????????????????????????
28Directory File Allocation Table
- ?????? disk ??????????????????????????????????????
?????????????? ????????????????????????? - Directory ?????????????
- File Allocation Table ?????????????????
- ?????????????????????????? sector 0
29???????????????????
TU
- user ??? folder ???????????????????????????(?????
????????? files) - ??????????????????????? ????????????????? disk
????????????????? directory
IS201
AC201
IM201
HOME
FRIENDS
30File Allocation Table (FAT)
File
Cluster
paper.doc
1
Cluster Address
project.xls
2
Cluster
Track
Sector
available
3
3
1
4,5,6,7
database.mdb
4
paper.doc
5
available
6
- FAT ??????????????? file ???????????????? Cluster
?????????????????? - FAT ????????????????? Cluster ???? ??????? track
??? sector ???
available
7
available
8
31File Allocation Table (FAT)
File
Cluster
paper.doc
1
- ??????????????? save file OS ????????? fat
??????? cluster ??????? ??????????? cluster ???
3, 6, 7, 8 ???? ????????? save ?? cluster ????? - ???????????????????????? save ?? cluster ??? 3
????
project.xls
2
available
3
database.mdb
4
Paper.doc
5
available
6
available
7
available
8
32File Allocation Table (FAT)
File
Cluster
paper.doc
1
- ????????????? cluster ??? 3 ????? ??????????? FAT
???????????????????? ???? ??????? save ?? ?
???????????? ???????????????????????? 6 - ????????????? save ??????? DOS ?????????? ????
end of file ????????????????????????????
project.xls
2
available
3
database.mdb
4
Paper.doc
5
available
6
available
7
available
8
33File Allocation Table / Directory
Cluster
- ??? Fat ???/???? Directory ???????????????????????
??????? - Operating System ?????????? ????????????
Directory ??? Fat ?????????? ???????????????
sector ???
34Harddisk
- Harddisk ????????????? ???????????????????????????
????????????????????? ????????????????????????????
??? ????????????????????? Cylinder
35??????????????????????????????????????
- Seek time ?????????????????????? ? track
????????????? - Head switching ????????????????????????? ??????
cylinder ????????????? - Rotational delay ??????????????????? ?
?????????????? - Data transfer ?????????????????????? ??? harddisk
?? memory ????????????????
36Harddisk ????????????? Cylinders
Cylinders
Heads
37Seek Time
Data
38Head Switching
39Rotational Delay
40????????????????? Harddisk
- Access time
- Seek time
- Head switching
- Rotational delay
- Data transfer rate
41?????????????????????? Harddisk
- Disk Defragment
- Data Compression
- Using Several Disk
42Disk Defragment
- ?????????????? file ?????????????????????????
Hard disk???????????????
43Data Compression
- ????????????????????????? Cluster ?????? file
????? - ????????????????
44???????? Data Compression
- Uncompressed Compressed
- a 00
0 - b 01
01 - c 10
10 - d 11
11 - Example abaaacad
- Before Compressed 0001000000100011 (16 bits)
- After Compressed 00100010011 (11
bits)
45Using Several Disks
- ?????????? hard disk ?????????????????????????????
????????????????????????? - ????????????? ???? disk ?????????? record
???????? ???????? disk ????????? ???? record
????? - ????????????????? disk ???????????????????????????
?????????? ??? disk ????????????
????????????????????????? ??????????????? Disk
mirroring
46CD Rom
- ????????????? Plastic
- ??????????????????????????????
- Track ?????????????????? (spiral)
47CD Rom
- ????????? track ?????
- ????? sector ???????????????
- Motor ??????? CD Rom ????????????????????????????
48Magneto-Optical Disk
- ????????????????????????????????? ????????
???????????? laser ??? CD Rom
49Magneto-Optical Disk
- ?????????????????
- ????????????????
- ????????????????
- ?????????????????? 500 MB ?????????? 5.25 ????
50???????????? Magneto-Optical Drive
- ????????
- ???????????????? ??????? Alloy ?????? Aluminum
???????? - ?????? laser ???????????????????????? ? ????????
? ???? Alloy - ? ???????????????? Alloy ????????????????
????????????????????????????????????
51???????????? Magneto-Optical Drive
- ???????
- ??? laser ??????????????? ???? Aluminum
????????????????? - ????????? ???????????????????? Alloy
?????????????????? ????????????????????????????
????????????? polarization ???????????????????????
?????? 0 ???? 1
52? ?????? 9/7/2540, 3/7/2541
- Removable Hard Disk ???? Secondary Storage
?????????????? ????????? - ????????????????? Hard disk ????????
- ?????? ????? ??????????? ???
- ??????????
53??????????? Floppy Disk, Harddisk, CD Rom
- F/L Disk HDD CD Rom
- ?????? (MB) 1.44 4,000 650 MB
- ???????? ??? ??? ??????
- ???????? ??? ??? ???????
- ??????????? ????? ???????? ?????
54??????????? Floppy Disk, Harddisk, CD Rom
- F/L Disk HDD CD Rom
- ???????? 3 ?? 5 ?? gt 10 ??
- ???? (???) 10 10,000 75
- Bytes / ??? 144,000 400,000 8,666,666