Access Methods | File Access Methods | operating systems | Sequential | Direct | Indexed | File Syst
HTML-код
- Опубликовано: 28 сен 2024
- #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.
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
Thanks Madhuree. if possible share with your friends. Thanks in advance.
Your lectures are Easy to understand.. I m following for my university exams.. And will follow for more
Thanks Goyal. Plz subscribe to the channel and if possible share with your friends. Thanks
Very clear explanation sir. Now I'm preparing for my exam from watching your vedios sir . Thank you so much sir🥰
All the best for your exam. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
The way u explained is so clear thank you sir😁👍🏻
You are welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Well explained sir your 4years video is now useful for me. Thank you sir ❤️🩹
The subject won't change even after 20 years. All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
I fall in love with your accent
Hai Imran Khan, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Great Efforts sir .Learning easily from your lectures .
Glad to hear that Bhupesh Gupta. Plz subscribe to the channel and if possible share with your friends. Thanks
Thank u Sir.......ur videos are informative
Hai Ashmita Saha, plz go through my videos once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Sir ,very nice expalanation thank u so much sir
You're most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Sir why should we use index sequential access method we have direct access method also that locates the file directly 🙄🙄🙄
Thank you so much 💚
Welcome.Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thank you very much sir great explanation
Hai Balaji, plz go through my videos once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
U hv good stuff❤
Keep it up 🎉
Thank you so much 😄 Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Sir you are my guru sir
Thanks sishya
Very god explaining
Thanks a lot. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Well described, thanks!
You're welcome! Dasun Nirmitha. Plz subscribe to the channel and if possible share with your friends. Thanks
plz do videos on
computer organization & arch
for GATE
Definitely i will do as early as possible
👌 excellent explanation sir tq
welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
very good sir, as advice I think you should focus on whiteboard more than camera to attract your students
K. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thank you sir🙏
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thank you sir 🙌🏻😍
Welcome 😊 Kamalesh. Plz subscribe to the channel and if possible share with your friends. Thanks
Sir please upload Operating system important questions R20 regulation JNTUA please sir
thank
you
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
thanks you sir
so nice of you sudheer. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
which algorithm sir said at 9:58???
binary search. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
examples For sequential access plz
Magnetic tape, tape recorder etc. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Tq...sir
Plz subscribe to the channel and if possible share with your friends. Thanks
Tq
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Your explanation is very clear and it is easy to understand and I'm preparing for my exams from your lecture ,thank you sir ❣️.
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thank u so much sir
Hai Sriram, plz go through my videos once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Sir thank you very much. I have passed my sem exams only because of you. Thank you sir 🙏🙏
congrats tejasvi. well done
Thanku u so much sir u r vedios are helping me a lot. 🙏
sir, I would like to hug you so bad, you made us understand, alhamdullillah. keep teaching sir we appreciate you. and please add caption as well sir
Thanks, captions will be auto generated by youtube, but some videos captions are not generating. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
Thank you so much sir
I will definitely 👍share this video to my friends
U r a great lecturer sir
Thanks for your support
Legend watching 1 hour before exam 😅😢
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
I don't have u as my OS sir 😭😭... Where are u working sir in which city and college ???
I am working in Andhra Pradesh. may I know where r u studying
plz subscribe to the channel and share with your friends. thanks
@@SudhakarAtchala sure sir already subscribed 😍
Lakireddy Bali Reddy College
Hello Sir ,Are you current teaching Faculty in any college ?
Excellent way of presentation !!
Yes. Plz subscribe to the channel and if possible share with your friends. Thanks in advance
Thank you for your clean explanations sir I want to ask a question for you sir Ronaldo or Messi
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Really your way of explaining is superb sir...thank you so much😊
Hai Likhi, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
thank you sir, i will give you free ice cream.
Hai , plz go through my playlists once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Most helpful for me sirr at the time of my seminor sessions thankqu for explaining particular points sirr
Welcome Joshna. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thankyou sir
So nice of you
thank you so much sir your way of teaching is amazing
Thanks and welcome Rajendra. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Superb explanation sir
Thanks and welcome Jyothsna.
Thank u sir it is easy to learn now ,
Hai Eswar, plz go through my videos once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Thankyou sir
Thank You So Much Sir...Your Accent is Very Goodddd
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Lifesaver
Nice thank you so much ❣️
You’re welcome 😊 Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Thank u sir. It was clearly a good lecture
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Best teaching ever💐🥰
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
very nyc explanation
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Thankyou sir
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Well explained sir ❤
Thanks and welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Thank you sir ❤️
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thank u sir
Welcome Govardhan. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thanks a lot sir...please provided video for GATE
K
Hai Amit, plz go through my videos once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
nice
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thank you sir
Hai Prakash, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Sir can u pls upload topic on I/O system?
Plz send me I/O system topics. So that i will try to upload videos on those topics.
Hai Shifna Zarnaz S, plz go through my videos once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
superb sir
Hai Jeevan Nayak , plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
❤
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
sir can u pls tell me how to solve this question using above concept
a sequential access file has a fixed sie of 17 byte records what is the logical location of the first byte of record5
a)81
b)70
c)92
d)51
As I have seen in Google the formula is (n-1)m
Where m =17 n=5 I don't know it correctly bro but this is wt I got
Is it enough for 5 marks?
Yes. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..