- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the role of file organization modules for typical file system software(DBMS)?
File organization is the way of storing data in the file. It is very useful as it determines ways of accessing it, storing it while maintaining the flexibility of the system.
Role of file organization
Hence, the roles of file organization are as follows −
It provides flexibility.
Easy access of data in files.
Easy storage.
Decrease the complexity of the overall system and files are stored and well maintained.
Provide security to data.
Saves users time in searching for particular information / data in file as every data is arranged so nicely.
Methods
The methods of file organization are as follows −
Contiguous
Data and files are arranged in contiguous address space in linear order.
Easy to implement
Issue is external fragmentation
Linked
Carries a list of links to disk blocks.
Every directory has a pointer which points to the first block of file.
Its advantage includes no external fragmentation.
It is used in sequential access of files.
It is bad for direct access methods.
Indexed
It resolves the drawback of both methods stated above.
We create an index and assign files.
Pointer is there which helps to take you to a particular file / data.
Each file has its own index block.