Explain relative file organization, Operating System

Assignment Help:

Relative file organization

A relative file is an array of fixed-length slots and the records can be inserted in the first free slot found from the beginning of the file and at the end of the file or in a specified slot in the file. Relative files are habitually used when record number will access records directly. Since each of the slots in a relative file is the same size, SFS is able to calculate the position of a specific record (identified by record number) by multiplying the record number by the record slot size.

The records in a relative file is able to be composed of fixed or variable-length fields except the size of each slot in the file is that of the maximum record size (which is calculated from the record specification when a relative file is created). The records in a relative file are able to be updated or deleted in place. Any slots free when records are deleted are able to be reused by subsequent insertions.

The primary index or else a relative file are based on the relative slot number (RSN), which correspond to the number of the slot occupied by a record the first relative slot number in a file is slot number 0 and the highest slot number can't exceed the maximum number of records specified when the file was created and the RSN is a physical part of the user's data record in Contrast this with the ESN used in entry-sequenced files. While a relative file is created at least one field must be of type sfs_unsignedInt32. This field ought to be specified as the primary index

 


Related Discussions:- Explain relative file organization

Explain process scheduling in multiprogramming, Normal 0 false ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Define the term system software, Question: (a) Define the term system ...

Question: (a) Define the term system software and application software, giving an example for each. (b) Draw a diagram to represent the abstract view of a computer system i

What is paging? , What is paging? Paging is a memory management schem...

What is paging? Paging is a memory management scheme that authorizes the physical-address space of a process to be noncontiguous. Paging evades the considerable problem of fi

Explain the architecting for threads, Explain the Architecting For Threads ...

Explain the Architecting For Threads When available, threads are an integral part of any multitasking server application program. It is important that the operating system prov

Explai basic concepts of demand paging, Basic concepts When a process i...

Basic concepts When a process is to be changed in, the pager guesses which pages will be used before the process is changed out again. Instead of swapping in a entire process,

Packets and time division multiplexing (tdm), Broken data into small packet...

Broken data into small packets allow time division multiplexing. In TDM every packet leaves the sender and is switched on the shared interaction channel through a multiplexer. At t

Lexical substitution during macro expansion, Lexical substitution during ma...

Lexical substitution during macro expansion Lexical substitution is employed to produce an assembly statement from a model statement. A model statement contains 3 types of stri

Disk scheduling algorithms-first come, FCFS (First Come, First Served) Per...

FCFS (First Come, First Served) Perform operations in order requested No reordering of work queue No starvation every demand is serviced Poor performance

Explain message passing among systems, Q. Explain Message passing among sys...

Q. Explain Message passing among systems? Communications- Message passing among systems requires messages to be turned into packets of information and sent to the network contr

What are the use of job queue, What are the use of job queues, ready queues...

What are the use of job queues, ready queues and device queues? As a process enters a system they are put in to a job queue. These queues having of all jobs in the system. The

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd