File Attrributes | File Operations Tutorial - 2

Опубликовано: 07 Август 2019
на канале: TechGuiders
4,716
45

To understand which are the basic file attributes , file operations and what operating system do for each of these operations
see the complete series
File System Implementation    • Operating System-File System Implementation  
File System Interface    • Operating System-File System Interface  
Operating System-process synchronization at https://www.youtube.com
/watch?v=TLwuWlcnXjE&list=PLskQvPDUk0sJ6RRPdkgO2qziych6vQwZ1
Operating System-Memory Management   • Operating System - Memory Management  

To understand attributes of a file. We keep the files on the secondary storage as well as the information about these files are kept in a directory structure which of the resides on the secondary storage . Now let us see which are the the information about those files or the file attributes.

Name:

identifier:

type:

location:

size:

protection:

time date and user identification:
Next Let Us see which are the file operation and what operating system do each of of these operations

File creation: in order to create a file first of all space for the file should be found.Then an entry should be made in the directory structure with all acquired information including the location.

Writing a file:to write to a file,system call should be made specifying name of the file as well as the information or the content to be written to that file.With the name of the file,the directory will be searched and the location will be found.Pointer will be kept by the system showing where the next read or write should take place.After adding the bytes to the file,the pointer will be updated .

Reading from a file:similarly,to read from a file,is system call if used specifying the the name of the file.Now system searches the directory for the file , find the location,then move to that location.A read Pointer sf also kept where the next read to take place.After the read the read pointer is updated.

A single current file position pointer is maintained instead of separate read and write pointer

repositioning within a file:

deleting a file:


На этой странице сайта вы можете посмотреть видео онлайн File Attrributes | File Operations Tutorial - 2 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь TechGuiders 07 Август 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 4,716 раз и оно понравилось 45 зрителям. Приятного просмотра!