Access Methods | File Access Methods | operating systems | Sequential | Direct | Indexed | File Syst

preview_player
Показать описание
#AccessMethods #FileAccessMethods #operatingsystemlectures
When a file is used, information is read and accessed into computer memory and there are several ways to access this information of the file. Some systems provide only one access method for files. Other systems, such as those of IBM, support many access methods, and choosing the right one for a particular application is a major design problem.

There are three ways to access a file into a computer system: Sequential-Access, Direct Access, Index sequential Method.

Sequential Access –
It is the simplest access method. Information in the file is processed in order, one record after the other. This mode of access is by far the most common; for example, editor and compiler usually access the file in this fashion.
Read and write make up the bulk of the operation on a file. A read operation -read next- read the next position of the file and automatically advance a file pointer, which keeps track I/O location. Similarly, for the writewrite next append to the end of the file and advance to the newly written material.

Key points:

Data is accessed one record right after another record in an order.
When we use read command, it move ahead pointer by one
When we use write command, it will allocate memory and move the pointer to the end of the file
Such a method is reasonable for tape.

Direct Access –
Another method is direct access method also known as relative access method. A filed-length logical record that allows the program to read and write record rapidly. in no particular order. The direct access is based on the disk model of a file since disk allows random access to any file block. For direct access, the file is viewed as a numbered sequence of block or record. Thus, we may read block 14 then block 59 and then we can write block 17. There is no restriction on the order of reading and writing for a direct access file.

A block number provided by the user to the operating system is normally a relative block number, the first relative block of the file is 0 and then 1 and so on.
Index sequential method –
It is the other method of accessing a file which is built on the top of the direct access method. These methods construct an index for the file. The index, like an index in the back of a book, contains the pointer to the various blocks. To find a record in the file, we first search the index and then by the help of pointer we access the file directly.

Key points:

It is built on top of Sequential access.
It control the pointer by using index.
Рекомендации по теме
Комментарии
Автор

Your explanation is very clear and it is easy to understand and I'm preparing for my exams from your lecture, thank you sir ❣️.

kandikantisaiganesh
Автор

I watch all your videos for OS
U r amazing
u explain all the concepts with so much clarity that I need not refer any textbook
Thank u so much sir

gopavaramsaimadhuree
Автор

Sir thank you very much. I have passed my sem exams only because of you. Thank you sir 🙏🙏

nagatejasvi
Автор

Your lectures are Easy to understand.. I m following for my university exams.. And will follow for more

ayushigoyal
Автор

Very clear explanation sir. Now I'm preparing for my exam from watching your vedios sir . Thank you so much sir🥰

hajeeralhajeeral
Автор

The way u explained is so clear thank you sir😁👍🏻

syedzaveriyaanjum
Автор

Thank you so much sir
I will definitely 👍share this video to my friends
U r a great lecturer sir

coolcandy
Автор

Thanku u so much sir u r vedios are helping me a lot. 🙏

R_sravani
Автор

thank you so much sir your way of teaching is amazing

akashrajendraprasad
Автор

Most helpful for me sirr at the time of my seminor sessions thankqu for explaining particular points sirr

joshnajosh
Автор

Really your way of explaining is superb sir...thank you so much😊

likhidaddy
Автор

Well explained sir your 4years video is now useful for me. Thank you sir ❤️‍🩹

ManchiManishi-ml
Автор

Great Efforts sir .Learning easily from your lectures .

bhupeshgupta
Автор

Thank you for your clean explanations sir I want to ask a question for you sir Ronaldo or Messi

Goat.Editz
Автор

Thank You So Much Sir...Your Accent is Very Goodddd

OmDevOps
Автор

Thank u sir it is easy to learn now,

perlaeswar
Автор

Sir, very nice expalanation thank u so much sir

sireeshajangam
Автор

Thank u sir. It was clearly a good lecture

anjalijayadevan
Автор

Thank you very much sir great explanation

dbalaji
Автор

Hello Sir, Are you current teaching Faculty in any college ?
Excellent way of presentation !!

wasalawyer.