CS 43 Operating System - Chapter 8: File Management

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 67

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

68 Terms

1

The File Manager

  • (also called the file management system) is the software responsible for creating, deleting, modifying, and controlling access to files—as well as for managing the resources used by the files.

New cards
2

The File Manager is responsible for:

  • Creating

  • Deleting

  • Modifying

  • Controlling Access to Files

New cards
3

The File Manager provides support for:

  • For libraries of programs and data to online users

  • For spooling operations

  • For interactive computing

New cards
4

Field

  • A group of related bytes that can be identified by the user with a name, type, and size. A record is made up of fields.

New cards
5

Record

  • A group of related fields treated as a unit. A file is a group of related records.

New cards
6

File

  • A group of related records that contains information to be used by specific application programs to generate reports.

New cards
7

Database

  • A group of related files that are interconnected at various levels to give users

    flexibility of access to the data stored.

New cards
8

Program Files

  • A file that contains instructions for the computer.

New cards
9

Directories

  • A storage area in a secondary storage volume (disk, disk pack, etc.) containing information about files stored in that volume.

New cards
10

Steps from the READ instructions:

  • Move the read/write heads to the cylinder or track where the record is to be found

  • Wait for the rotational delay until the sector containing the desired record passes under the read/write head

  • Activate the appropriate read/write head and read the record

  • Transfer the record to main memory

  • Set a Flag to indicate that the device is free to satisfy another request

New cards
11

Typical Volume Configurations:

  • Volume

  • Multifile Volumes

  • Each volume in the system is given a name

New cards
12

Volume

  • Any secondary storage unit, such as hard disks, disk packs, CDs, DVDs,

    removable disks, flash memory, or tapes.

New cards
13

Multifile Volumes

  • Each storage unit, whether it’s removable or not, is considered a volume, and each volume can contain several files, so they’re called “_________.”

New cards
14

Master File Directory (MFD)

  • A file stored immediately after the volume descriptor. It lists the names and characteristics of every file contained in that volume.

New cards
15

Subdirectory

  • A directory created by the user within the boundaries of an existing directory. Some operating systems call this a folder

New cards
16

File Descriptor Information:

  • Filename

  • File Type

  • File size

  • File Location

  • Date and Time of Creation

  • Owner

  • Protection Information

  • Record Size

New cards
17

Filename

  • Within a single directory, filenames must be unique; in some operating

    systems, the filenames are case sensitive

New cards
18

File Type

  • The organization and usage that are dependent on the system (for example, files and directories)

New cards
19

File Size

  • Although it could be computed from other information, the size is kept

    here for convenience

New cards
20

File Location

  • Identification of the first physical block (or all blocks) where the file

    is stored.

New cards
21

Protection Information

  • Access restrictions, based on who is allowed to access the file and what type of access is allowed

New cards
22

Record Size

  • Its fixed size or its maximum size, depending on the type of record

New cards
23

File-Naming Conventions 2 Components to many Fiilenames:

  • Relative filename

  • Extension

New cards
24

Complete Filename

New cards
25

Relative Filename

  • A file’s name and extension that differentiates it from other files in

    the same directory.

New cards
26

Extension

  • In some operating systems, it’s the part of the filename that indicates which compiler or software package is needed to run the files. In UNIX and Linux, it is

    optional and called a suffix.

New cards
27

File Organization

  • When we discuss file organization, we are talking about the arrangement of records within a file because all files are composed of records.

New cards
28

Record Format

  • All files are composed of records. When a user gives a command to modify the contents of a file, it’s actually a command to access records within the file.

Same format:

  • Fixed length, or

  • Variable length

Regardless of format, it can be:

  • Blocked

  • Not blocked

New cards
29

Fixed-length Records

  • A record that always contains the same number of characters.

New cards
30

Critical Aspect: is the size of the record

  • If it is too small, smaller than the number of characters to be stored in the record, the leftover characters are truncated

  • If it is too large, larger than the number of characters to be stored, storage space is wasted

New cards
31

Physical File Organization

  • The physical organization of a file has to do with the way records are arranged and the characteristics of the medium used to store it.

New cards
32

Ways on how files are organized on Magnetic Disks (Hard Drives):

  • Sequential

  • Direct

  • Indexed Sequential

New cards
33

Characteristics to consider in selecting the best of the file organizations:

  • Volatility of the data

  • Activity of the file

  • Size of the file

  • Response time

New cards
34

Volatility of the data

  • The frequency with which additions and deletions are made

New cards
35

Activity of the file

  • The percentage of records processed during a given run

New cards
36

Response time

  • The amount of time the user is willing to wait before the requested

    operation is completed (This is especially crucial when doing time-sensitive searches)

New cards
37

Sequential Record Organization

  • The organization of records in a specific sequence. Records in a sequential file must be processed one after another.

New cards
38

Direct Record Organization

  • Files stored in a direct access storage device and organized to give users the flexibility of accessing any record at random, regardless of its position in the file.

New cards
39

Relative Address

  • In a direct organization environment, it indicates the position of a

    record relative to the beginning of the file.

New cards
40

Logical Address

  • The result of a key-to-address transformation.

New cards
41

Indexed Sequential Record Organization

  • A way of organizing data in a direct access storage device. An index is created to show where the data records are stored. Any data record can be retrieved by consulting the index first.

New cards
42

Physical Storage Allocation

  • The File Manager must work with files not just as whole units but also as logical units or records. Records within a file must have the same format, but they can vary in length.

New cards
43

Types of Physical Storage Allocation:

  • Contiguous Storage

  • Noncontiguoous Storage

  • Indexed Storage

New cards
44

Contiguous Storage

  • A type of file storage in which all the information is stored in adjacent locations in a storage medium

Advantage:

Disadvantage:

New cards
45

Noncontiguous Storage

  • A type of file storage in which the information is stored in nonadjacent locations in a storage medium.

New cards
46

Extents

  • Any remaining records and all other additions to the file that are stored in

    other sections of the disk.

New cards
47

Efficient Methods of Storage Allocation:

  • Contiguous for direct files

  • Noncontiguous for sequential

New cards
48

Access Methods

  • Are dictated by a file’s organization; the most flexibility is allowed

    with indexed sequential files and the least with sequential.

New cards
49

Current Byte Address (CBA)

  • The address of the last byte read. It is used by the File Manager to access records in secondary storage and must be updated every time a record is accessed.

New cards
50

Sequential Access

  • For sequential access of fixed-length records, the CBA is updated simply by incrementing it by the record length (RL), which is a constant:

CBA = CBA + RL

New cards
51

Direct Access

  • If a file is organized in direct fashion, it can be accessed easily in either direct or sequential order if the records are of fixed length. In the case of direct access with fixed-length records, the CBA can be computed directly from the record length and the desired record number RN (information provided through the READ command) minus 1:

CBA = (RN - 1) * RL

(11-1) * 25 = 250

New cards
52

To Access a Record:

  • Do a sequential search

  • It becomes a half-sequential read through the file

New cards
53

Indexed Sequential File

  • Can be accessed either sequentially or directly, so either of the procedures to compute the CBA presented in this section would apply but with one extra step: the index file must be searched for the pointer to the block where the data is stored.

New cards
54

Levels in File Management System

File Manager

  • Basic File System

  • Access Control Module

  • Logical File System

Device Manager

  • Physical File System

  • Device Interface Module

  • Device

New cards
55

Transform Record Number to Byte Address:

CBA = (RN - 1) * RL

New cards
56

Access Control Matrix

  • is intuitively appealing and easy to implement, but because of its size it only works well for systems with a few files and a few users. In the matrix, each column identifies a user and each row identifies a file.

New cards
57

Access Control List

  • is a modification of the access control matrix. Each file is entered in the list and contains the names of the users who are allowed to access it and the type of access each is permitted.

New cards
58

SYSTEM or ADMIN

  • is designated for system personnel who have unlimited access to all files in the system.

New cards
59

OWNER

  • has absolute control over all files created in the owner’s account.

New cards
60

GROUP

  • file so that all users belonging to the appropriate group have access to it.

New cards
61

WORLD

  • is composed of all other users in the system; that is, those who don’t fall into

    any of the other three categories. In this system, the File Manager designates default types of access to all files at creation time, and it’s the owner’s responsibility to change them as needed.

New cards
62

Capability List

  • Shows the access control information from a different perspective. It

    lists every user and the files to which each has access

New cards
63

Data Compression

  • A procedure used to reduce the amount of space required to store data by reducing, encoding, or abbreviating repetitive terms or characters.

New cards
64

Data Compression Algorithms:

  • Lossless algorithms - typically used for text or arithmetic files

  • Lossy algorithm - typically used for image and sound files and remove data permanently

New cards
65

Text Compression

  • To compress text in a database, three methods are described briefly here: records with repeated characters, repeated terms, and front-end compression.

New cards
66

3 Methods to Compress Text in Database:

  • Records with repeated characters

  • Repeated terms

  • Front-end compression

New cards
67

Lossy Compression

  • Allows a loss of data from the original file to allow significant compression. This means the compression process is irreversible as the original file cannot be reconstructed.

New cards
68

For Video and Music Files:

  • International Organization for Standardization (ISO) issued MPEG standards

  • ISO is the world’s leading developer f international standards

New cards
robot