Skip to main content

5.1.1 Describe The Three Types of File Structure


 CHAPTER 5 FILE MANAGEMENT


Introduction


  • Files are an abstraction mechanism
  • A file consists of data on disk. Can regard this data as a sequence of bytes.
  • A filename is an alias for this data. We can access the data by using the lename. So, we don't worry about:
  • Where the data is on the disk (what cylinder,sector, etc)
  • How the data is read in from disk to main memory
  • The file system handles these details for us.
File Management
  • File system is a method for storing and organizing computer files and the data they contain to make it easy to find and access them.
  • File systems may use a data storage device such as a hard disk or CD-ROM.
  • Involve maintaining the physical location of the files.
  • Provide access to data on a file server by acting as clients for a network protocol.
  • It is distinguished from a directory service and registry.

5.1.1 Describe the three types of file structure. (CLO1)

a. Unstructured (byte sequence)


File Structure:
umstructured (byte sequence)

File Structure:Three kinds of files. (a) Byte sequence. (b) Record sequence. (c) Tree.



 a. Byte Sequence:
The file in Fig. (a) is just an unstructured sequence of bytes. In effect, the operating system does notknow or care what is in the file. All it sees are bytes. Any meaning must be imposed by user-level programs. Both UNIX and Windows 98 use this approach.

b. Record Sequence:
In this model, a file is a sequence of fixed-length records, each with some internal structure. Central tothe idea of a file being a sequence of records is the idea that the read operation returns one record andthe write operation overwrites or appends one record. As a historical note, when the 80-column punched card was king many (mainframe) operating systems based their file systems on files consistingof 80-character records, in effect, card images

c. Tree:
In this organization, a file consists of a tree of records, not necessarily all the same length, eachcontaining a key field in a fixed position in the record. The tree is sorted on the key field, to allow rapidsearching for a particular key.










Comments

Post a Comment

Popular posts from this blog

Define Swapping technique which is usually used in memory management

  Define Swapping technique which is usually used in memory management   Swapping is a simple memory/process management technique used by the operating system(os) to increase the utilization of the processor by moving some blocked process from the main memory to the secondary memory(hard disk);thus forming a queue of temporarily suspended process and the execution continues with the newly arrived process.   After performing the swapping process, the operating system has two options in selecting a process for execution Swapping is a mechanism in which a process can be swapped temporarily out of main memory to a backing store , and then brought back into memory for continued execution. Backing store is a usually a hard disk drive or any other secondary storage which fast in access and large enough to accommodate copies of all memory images for all users. It must be capable of providing direct access to these memory images. Major time cons...

Operating Systems Definition and the Classification of OS

             OPERATING SYSTEMS ( OS ) What is an operating system? An operating system (sometimes abbreviated as "OS") is the program that, after being initially loaded into the computer by a boot program, manages all the other programs in a computer. The other programs are called applications or application programs. The application programs make use of the operating system by making requests for services through a defined application program interface (API). In addition, users can interact directly with the operating system through a user interface such as a command language or a graphical user interface (GUI). An operating system performs these services for applications:     In a multitasking operating system where multiple programs can be running at the same time, the operating system determines which applications should run in what order and how much time should be allowed for each application before g...

Types of Operating System

State four types of Operating System 1)       MICROSOFT WINDOWS Operating system designed and produced by Microsoft Corporation. Similar to other operating systems, Windows makes a computer system user-friendly by providing a graphical display and organizing information so that it can be easily accessed. The operating system utilizes icons and tools that simplify the complex operations performed by computers. Estimates suggest that 90% of personal computers use the Windows operating system. Microsoft introduced the operating system in 1985 and it has continued to be widely used despite competition from Apple's Macintosh operating system. example of windows Display of Window 8 Name Release date Release version Editions Build Windows 10 29 July 2015 NT 10.0 [1] Windows 10 Home. Windows 10 Mac 7 Windows 10 Enterprise Windows 10 Education Windows ...