What are the ways to access the same files in more than one place in the directory
structure? Explain and justify your answer. (10 points)
Answer:
A file in a directory can be accessed into a computer using three different ways namely: sequential access, direct access, and index sequential access methods:
Sequential access
It is the most common file access method whereby file information is retrieved in an orderly or sequential manner; that is one file is accessed after another. It is the most common file access method in tapes whereby when a read command is used a read pointer is moved ahead by one and when a write command is used, a memory address is allocated and the pointer. An example of sequential file access is evidenced in devices such as editors and compilers.
Direct access:
This is a file access method which is also referred to as the relative method. It's a method that a program is allowed to read and write a specific file or record without a particular sequence. Since a computer disk allows files to be accessed randomly within any file block, this access method gets its basis on the disk model of a specific file. This type of access is termed direct since a file is viewed as a sequence of events or records. For example, when a user commands a number to the operating system, value 0 becomes the first relative block followed by 1 and the procedure continues.
Index sequential method:
This is a file access method built on top of the sequential access method. A specific file index is constructed which contains the pointer to various file blocks. The index is first searched to find a certain record in a file then the pointer assists to directly get the file
Share To Friends Via:
More Questions For Networking and Data Communication: