728x90
directory is just file system that is managed by kernel.
notice very block has pointer to its parent.
per process file descriptor table (PPFDT) = every process have their own PPFDT
a process can open a file twice. if this is done by calling open() twice, then there will be two different entries in PPFTD as well as in SWFT for that single file
there can be only one unique i-node
calling dup() , there will be 2 entries in PPFDT but only one entry in SWFT.
when you read descriptor 3 and later read with descriptor5 current offset will not start from zero.
child process will inherit PPFDT of parent process. both descriptor4 is point to same SWFT.
same as above both pointer are sharing same SWFT.
728x90
'Operating System > System Programming(Arif Butt)' 카테고리의 다른 글
Lec14) Design and Code of UNIX ls Utility (0) | 2021.07.05 |
---|---|
Lec13) UNIX File Management (0) | 2021.06.29 |
Lec11) Design and Code of UNIX more utility (0) | 2021.06.25 |
Lec10) Heap Behind the Curtain (0) | 2021.06.23 |
Lec09) Stack Behind the Curtain (0) | 2021.06.22 |