Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
26 views
21 pages
Osy Chapter 6 Notes
All simple and easy Osy chp 6 notes
Uploaded by
55- Sheldon
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save OSY CHAPTER 6 NOTES For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
26 views
21 pages
Osy Chapter 6 Notes
All simple and easy Osy chp 6 notes
Uploaded by
55- Sheldon
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save OSY CHAPTER 6 NOTES For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save OSY CHAPTER 6 NOTES For Later
You are on page 1
/ 21
Search
Fullscreen
¢. Fie Clan 4 Te Clanegemany — Ble ke a collech | of related info fr Creator + slered io seemed, P stowage piel BP genenal file fs a cottecten of bike, oyles, lines or S a hose meaning is deh ned by The files ceoaloy $ © GileHpes A User, @ Srecatabie File. + C+ exe i} is @ collection nf code secHen Hoot the toader cao tentig folo mene an d-oxguue Objea- Fle :¢ -08j | 0) his 4 sequence of by ks teat ore understardeuble b CO Text File Cet /.doc) i a Aad foto blote ioe machine, ik ts ‘inlo ieee Sequance OF characters “que © Hens Files: ¢-tib) tk rs collecten oF bwaay. funckiens for the Pera os ie © earch fie : buf #5) te ts bre coULum OF torematn bleper N © Sousce code File CC] java) wid + ip as a collection oF data. + odie source code followad by axeaeble olakements Can be in various taaeage ds to the CommandQBerteckon: Pisa aetess conko} informedton about Ale i-e Read or wrle_pemi gion | QD Arde C-2ip foe) / — ik is eH Ihe Colledion oF welakd Files, Gb compressed Fle thab are gepes iplo © Mubimedia Pile C . mpeg [mov | mp5) — His Pele Hore cu dro video infeamatin, Atisbules of Fite. : A File can consis! of following akribules 5 — @) ® Nome: Anane alfebule is specified by Hy wee whidtig Me informalion ep ip human redaute foe © Gh idenkifier: §r fe a unique rumbuy which is ® used to an File within the File gystem © Size: This whyibue speaties tne sice of - File on the sysken. Tires too clored in Ye form oF bykes, \eB ov mB ake. : @ Mee. «Wr Specifies the File ‘ypes thak ts "supported by the file system such ag a bk Imoae File ete. : @ \ocaston: ik speciPieg whore onuctyy the File fg 4 stored on the device © Author: it ae He name oF oreotoy of He a tle. Las} modified it spedesthe dake cohen the Prle is > ——+——3y_tast updated a Vee or ee ed pes teciies fay creaking a Filet for Me creation, woo deps axe hecess O® a space otttdFavailatie in the the le ssh @ A» obey for nao Fle mush be madeto the “rer pes - behariowy a ak dete h ( ally 1 set OF vate b ®D walking a Fle. cobile pesforming. a write Operation , ; a syslem call & made’ cohich contedins +e Cee of Pile and tha infeomalton bo be writen 9 the Pale. ’ , @ Reading 0 We. : Wis poration read the data Prom the Pile. oohile por Form opertilian , eu system om 1s made eobich conkeins the mane of Pile And tecation where tmad operatten fs +o be performed, - 7 @ Repositioning coilbin ine fle: this operation does ook , inyol ue inpuk / output operation _ this operation only search a File t dive wil Sie appropyate Yepieyp and turnrent file posiHenis ser fo a aiven 5 ave. The operation fs also cated ag Chile seals”. ‘ @ dustiog a file : this operation dusting a file enkoy fiom File system. © Baueaes a file: Somelimes a user oy want terace the cootensof Pile but keep its atbules, In this Case, funcating Ps dene, cobb aa deletes tne contents Of Files Se ss =Access caeltods of Files Thee ar two melnod to acess o File. © sequankiey Ueess @ Diver ucress GD) sequenlted access crelhed © [pFormalion io Pile is process ip oss, one xecotd after the other. = Reads and@riles male up He butts oF the operatione on a rie» + Bo avead operatin "Read nenck!” xceads Hae nent poston of the File and ‘austomabi to€remenk a File potrlez 5) a + Simit Ip write epecation ” wvle nex} appendsCadd to the end of the PAle and ek new end of File. 4 ua wie end Rewind PT eraad. 6 piece oF data tral is shored ab dhe end of the Pile, one bas 40 road atlof the date Heit comes befoee Th. you cannok JU™P diveck fo thy desived data. This 1s Siovilox do the wi Uyrseok psi Koo ‘eigeet abe Be inh Cascette tape yezs coos, IP ore wank fo [isken to de task song an a cassette tape, be hasto eilher Fastforward over atl of he Songs that Comes befirte ik ov Lslen bo them, There is Po uaioy to furnp directly fo a Specifite WA @ Diree ACless Creinod : +B file ts made upof firced Jeng ts Logical Awwwtds frat allocd programs 4o toadand wile, ‘tocords eapldly ron pesuulor osdere, + Thus, User may tedid Abts £0 , Then blows 4 and then date pleck 3g. sThees. axe 70 restsctten 0 the eden oF gaadiog wslnq. For a disect access File. > Diseck ACCESS Method Js based on a disk modet of o Fle, Sivce a disis alow -randony access to any file blot, + pirechaccess files axe of qreatuse oe immediate access to darge amount of fr alton, spababases axe often Hemme this » for Aiveck access rothod , the file operattens must be modified to incude the blouc DUMber AS a parame, + hen you eam, with direct access File : called as random access Fle, you can jeP divedtty any piece of date in the File. wainauh mall of tho darter Similleur. the wi which fs Cs o a cp player F ™P3 ployer werks, you can f4mP Sivecy to “a soe. that you wan} fo Lislen to- © sequen al access les are easy bo cook as compared to divect access File - with| Sequsnbia} access Direct accese op=o aad (P” | epecptl a | cpecptl ie Simulation oF sequential access + \ diveot ciceess , — file can be a shruchured in ony of several oe — > the wommon possibjliibs OF shudued OF files ae as follows ® Unghuctwred sequence oP byles (hye sequince) ® Sequence oF fiseed. lenalh recewds (Reewsd e ) © Tene oF acsecotds Chee sequence), eee) Ve 4% — io o '@ le Rewrdge oh \S . —> Ws fissttype, re in Byle sequence, the conken}s ace : Stored Jn the fora of kyle fre sequence F-00%4 , PRoush itis bingy File, Bat if conlents Prom usey— point of view anormal Ate. —> In vecovd cequnce, the daba ts cored ip Phe Forms of weds, Recovds are collection of cotlecrived ater meang datetl of one Studenls t49 include Name, voll no, address , mobileno ete. ——> In free Sequence, A Pile consick of o tree oP arteord , nok necessavnfly that ay recovd hare Same sengtiy. In thistype dater is in hierarchical osder, a x oe — Allocadti ory CHelhod These oe Pras Fess oF Pile allocation aetbods , Conkquous ablocertian | Lfoked oLLoceeh'on @® Indexed allocation, CD ceokiguous auscation relied Hy df to ws tha Conligunus ablocetHen at us address OP Fle fo app Occupy a set oF congue ures each the diel Hy — “aik addresses fire a Sint ar alee the disk 2 ab tins osdering_, accessi block bat arher b “as no head rem enk, esr ay aaqui ii 8 | ee J: y- sal as allocation of a fie is debined by the disk Aves OF Fixshy andthe angin o& oF the File i, Blocle > IP the file is '% bjocis tong. and chee aut location (& , then iP occuptes blocks’ b, BH) b+ 21 =~ - bint. ——= the eee sary for eath file indicates the ea Aadeess of the herding block, und the length of He avea cilocated “ for this File - fre ; Pile ~ glatt length. met 4 2 \e3 aero 18 © Riles 8 S eo ey uly \s-] vwL] vl vw] 31] Fie L121] a] a Ciel oo{ | 7 by cooleett auiocsltior method Advantages £@ sued a file ts eusy, @ is boty sequenhial and dived- access method. Disadvanlages : Di} js nefhiaent because iF m sad bo erthesne| leg asshstes(Q) hnked hoked _abtocaltan = The poublem associaked wit conliguous dyocation axe wesolued i0 inked abrocetttory eal <, scattered —— In Ihis method ex fie occupies disk bleu anywhere on the ed lis allocated blocks . to the Fle, 1] Free blows, — his a ink e has fobe attocaked — when spac can be used from We dtsleaet ond Sy slern mates an a in directo — dive For lintedetocalion Pile cankuns, file nome, inky to the Fivsk allocated blocs ond lat allocated block, of the File. — ita File poinker is imbabreed ds pull ved the that exnpy file: A wonle re fo a file, causes search oF & free block) free blocls data is wontten fo the File and that 1 indicate — ater Blouc fs linked fo the end of the File - te ead the file, read \sk blocte Hhen obber bleu, one by one coith tro hetp oF power specified 10 fhe euch Hlols. ; ss for eg. O file ofa Fine bloucs shaving with bleue a, and continue colt bjock te, then blouc 4 Then Bled 1o° and fin block 28 | each abloceited “plouic conkaiins & potnter to tne i “plea, Dire ant mn ose fe a5 ce WET 2 | as orl an Reo vo BL 30>!_dverkages ® there is no enctemal Feagtradh oben problem . Dsadvathage D ok supped direct access method ely Suppoee Sequankial attess mebod , QD encher spaue asqudeed for poinler QS Tdeoud abocation linked ablocakion canno} support direct access because tne puinker bo blotks cure scattered abl Overrthe dtsk and must be xahiwe in osder, } | —— Index aocaten ig the solutron to the pavblems of previous leehniques, , —— if provides this golution Py ae eokive poinkens “ SI 4 r inko one location catted a ey? lowell. Direckery nloy | fe | eas Ales | 1s — af De, 4 3 \o— "The dive ny en conan s File name cind address oF yeedane, block | Bach File has its own jndese bloc which US ay geri F disk blocle Addaessess, “Then! oney th the Inde bloug poloks bo the nth blot, of Pile”, —— To vead ox wale in _oth blog we use the. address of nth. indore blow... t ‘ Avarheoss i ted an? : P Dit suppoxr bokh seosahrer| ‘ + “Seveck: Ate method , ® No exelernal pega Dratiadeie, — Erdea spa ts Peaqudred foe indo Slous , OS ah fgg ee te 8Directory Structure A directory is a container that is used to contain folders and file. It organizes files and folders into a hierarchical manner. Directory D1 11 Diz p13 p14 FL F2 F3 Fa FS Fe FT FB Fo Files Sin; vel directory — Single level directory is simplest directory structure. Init, all files are stored in same directory which make it easy to maintain and understand. A single level directory has a significant limitation, however, when the number of files increases or when the system has more than one user. Since all the files aré in the same directory, they must have the unique name. ROOT DIRECTORY [| CROROTORS COISAdvantages: * Since itis a single directory, so its implementation is very easy. © Iffiles are smaller in size, searching will faster. © The operations like file creation, searching, deletion, updating are very easy in such a directory structure. Disadvantages: « There may chances of name collision because two files cannot have the same name (naming problem). + Searching will become time taking if directory will large: * In this cannot group the same type of files together means we can not make subfolders (grouping problem). 2. Tw el directory — © As, a single level directory often leads to:confusion of files names among different users hence the solution to this problem is to create a separate directory for each user. * In the two-level directory structure) each. user has their own user files directory (UFD). «The UFDs has similar structures, but each lists only the files of a single user. System's master file directory (MFD) is searches whenever a new user logged in, * The MFD is indexed by Username or account number, and each entry points to the UFD for that user. directory vy C=) Ge] C2) Td directory mm OLOIOE@IOIOAdvantages: + The main advantage is there can be more than two files with same name, and would be very helpful if there are multiple users. + Asecurity would be there which would prevent user to access other user's files. + Searching of the files becomes very easy in this directory structure. Disadvantages: + As there is advantage of security, there is also disadvantage that the user cannot share the file with the other users. + Unlike the advantage users can create their own files, users don’t have the ability to create subdirectories. = Scalability is not possible because one use can’t group the same types of files together. ‘ree-structured directory — ‘¢ Tree directory structure of operating system is most commonly used in our personal computers. User can create files and subdirectories too, which was a disadvantage in the previous directory structures. * This directory structure resembles a real tree upside down, where the root directory is at the peak. This root contains all the directories for each user. The users can create subdirectories and even store files in their directory. * Auser does not have access to the root directory data and cannot modify it. And, even in this directory the user do not have access to other user's directories. The structure of tree directory is given below which shows how there are files and subdirectories in each user's directory. Root i = oe Gear: pu biz bis pa directory Files and subdirectories [=] (=) eaeAdvantages: + This directory structure allows subdirectories inside a directory. + The searching is easier. + File sorting of important and unimportant becomes easier. + This directory is more scalable than the other two directory structures explained. Disadvantages: + As the user isn’t allowed to access other user's directory, this prevents the file sharing among users. + As the user has the capability to make subdirectories, if the number of subdirectories increase the searching may become complicated. + Users cannot modify the root directory data. + Iffiles do not fit in one, they might have to be fit into other directories. ik Organization: Aphysical structure of disk is amemory storage device which looks like this: track t arm assembly sector s cylinder ¢ platter rotation. Hard disk consists of a number of platters The platters rotate at a very high speed (5400 RPM to 10,000 RPM) Disk (read/write) heads move over the platter surface to read and write (magnetize) data bits The disk head can read or write data only when the desired disk surface area is under the disk head. Read-Write(R-W) head moves over the rotating hard disk. It is this Read-Write head that performs all the read and write operations on the disk and hence, position of the R-W head is a major concern. To perform a read or write operation on a memory location, we need to place the R-W head over that position. Some important terms must be noted here: 1, Seek time - The time taken by the R-W head to reach the desired track from it’s current position. 2. Rotational latency - Time taken by the sectorto come under the R-W head. 3. Data transfer time - Time taken to transfer the required amount of data. It depends upon the rotational speed. 4. Controller time - The processing time taken by the controller. 5. Average Access time - seek time + Average Rotational latency + data transfer time + controller time. Alogical structure The traditional head-sector-cylinder ( HSC) numbers are mapped to linear block addresses by numbering the first sector on the first head on the outermost track as sector 0. Numbering proceeds with the rest of the sectors on that same track, and then the rest of the tracks on the same cylinder before proceeding through the rest of the cylinders to the center of the disk. In modern practice these linear block addresses are used in place of the HSC numbers for a variety of reasons: 1, The linear length of tracks near the outer edge of the disk is much longer than for those tracks located near the center, and therefore it is possible to squeeze many more sectors onto outer tracks than onto inner ones.2. All disks have some bad sectors, and therefore disks maintain a few spare sectors that can be used in place of the bad ones. The mapping of spare sectors to bad sectors in managed internally to the disk controller. 3. Modern hard drives can have thousands of cylinders, and hundreds of sectors per track on their outermost tracks. These numbers exceed the range of HSC numbers for many ( older’), operating systems, and therefore disks can be configured for any convenient combination of HSC values that falls within the total number of sectors physically on the drive. © There is a limit to how closely packed individual bits can be placed on a physical media, but that limit is growing ‘increasingly more packed as technological advances are made. * Modern disks pack many more sectors into outer cylinders than inner ones, using one of two approaches: Y With Constant Linear Velocity, CLV, the density of bits is uniform from cylinder to cylinder. Because there are more sectors in outer cylinders, the disk spins slower when reading those cylinders, causing the rate of bits passing under the read-write head to remain constant. This is the approach used by modern CDs and DVDs. Y With Constant Angular Velocity, CAY, the disk rotates at a constant angular speed, with the bit density decreasing on outer cylinders. ( These disks would have a constant number of sectors per track on all cylinders. )Raids £Disk: RAID, or “Redundant Arrays of Independent Disks” is a technique which makes use of a combination of multiple disks instead of using a single disk for increased performance, data redundancy or both. Why data redundancy? Data redundancy, although taking up extra space, adds to disk reliability. + This means, in case of disk failure, if the same data is also backed up onto another disk, we can retrieve the data and go on with the operation. * On the other hand, if the data is spread across just multiple disks without the RAID technique, the loss of a single disk can affect the entire data. Standard RAID levels Mirroring provides reliability but is expensive; Striping improves performance, but does not improve reliability. Accordingly there are a number of different schemes that combine the principals of mirroring and striping in different ways, in order to balance reliability versus performance versus cost. These are described by different RAID levels, as follows: Raid Level 0 - This level includes striping (divides large data into no. of small blocks) only, with no mirroring. RAIDO stRaid Level 1 - This level includes mirroring (copy data into other disk) only, no striping. RAID 1 Mirroring o1sx 1 oss Raid Level 2 - This level stores error-correcting codes on additional disks, allowing for any damaged data to be reconstructed by subtraction from the remaining undamaged data. RAID2 o1sKo rsx 1 o1sK2 rsn3 ork o1sxs ok Raid Level 3 - This level is similar to level 2, except that it takes advantage of the fact that each disk is still doing its own error-detection, so that when an error occurs, there is no question about which disk in the array has the bad data. As a result a single parity bit is all that is needed to recover the lost data from an array of disks.RAID 3 Parity on separate disk rsx 1 isk 2 o1sx3 ors Raid Level 4 - This level is similar to level 3, employing block-level striping instead of bit-level striping. The benefits are that multiple blocks can be read independently, and changes to a block only require writing two blocks ( data and parity ) rather than involving all disks. RAID4 o1sK 0 isk 1 isk 2 isk 3 Raid Level 5 - This level is similar to level 4, except the parity blocks are distributed over all disks, thereby more evenly balancing the load on the system. For any given block on the disk(s), one of the disks will hold the parity information for that block and the other N-1 disks will hold the data. Note that the same disk cannot hold both data and parity for the same block, as both would be lost in the event of a disk crash.RAID 5 gas oso 1s o1sx2 osx Raid Level 6 - This level extends raid level 5 by storing multiple bits of error- recovery codes, for each bit position of data, rather than a single parity bit. RAID 6
You might also like
OSY 6th Chapter Notes
PDF
No ratings yet
OSY 6th Chapter Notes
36 pages
Module 4. File System and Secondary Storage
PDF
No ratings yet
Module 4. File System and Secondary Storage
22 pages
File Systems and Management
PDF
100% (1)
File Systems and Management
66 pages
Operating System Module 5 Notes
PDF
No ratings yet
Operating System Module 5 Notes
63 pages
Python Unit5
PDF
No ratings yet
Python Unit5
45 pages
3@pdf 1691544667893
PDF
No ratings yet
3@pdf 1691544667893
372 pages
OS CO4 S4 FileDirectories FileSystemImplementation
PDF
No ratings yet
OS CO4 S4 FileDirectories FileSystemImplementation
79 pages
Module 5
PDF
No ratings yet
Module 5
68 pages
Unit 6
PDF
No ratings yet
Unit 6
56 pages
File Management-1
PDF
No ratings yet
File Management-1
84 pages
Trees
PDF
No ratings yet
Trees
72 pages
File Structures NOTES by Ashok Kumar PDF
PDF
No ratings yet
File Structures NOTES by Ashok Kumar PDF
132 pages
Chapter 2 - File System Management
PDF
No ratings yet
Chapter 2 - File System Management
43 pages
File System Interface: Unit - 5
PDF
No ratings yet
File System Interface: Unit - 5
24 pages
OS Unit5
PDF
No ratings yet
OS Unit5
23 pages
Unit 5 Os
PDF
No ratings yet
Unit 5 Os
23 pages
Unit 4
PDF
No ratings yet
Unit 4
24 pages
Module 5
PDF
No ratings yet
Module 5
46 pages
File Access MethodsCH7
PDF
No ratings yet
File Access MethodsCH7
29 pages
DSA - Unit VI File Organization
PDF
No ratings yet
DSA - Unit VI File Organization
29 pages
10-Unit1 IoT Part2
PDF
No ratings yet
10-Unit1 IoT Part2
24 pages
OS U-5 Lec-4 Notes
PDF
No ratings yet
OS U-5 Lec-4 Notes
39 pages
Maths CC
PDF
No ratings yet
Maths CC
23 pages
UNIT-5 File System Interface and Operations
PDF
No ratings yet
UNIT-5 File System Interface and Operations
30 pages
Os Module 5
PDF
No ratings yet
Os Module 5
21 pages
Unit 2 2
PDF
No ratings yet
Unit 2 2
18 pages
Unit-5 File Management
PDF
No ratings yet
Unit-5 File Management
41 pages
Unit 5 - Files and Exceptions
PDF
No ratings yet
Unit 5 - Files and Exceptions
45 pages
OS MATERIAL-part-5
PDF
No ratings yet
OS MATERIAL-part-5
40 pages
OS Unit 5
PDF
No ratings yet
OS Unit 5
19 pages
Raf 2
PDF
No ratings yet
Raf 2
13 pages
Assignment 5 Cse
PDF
No ratings yet
Assignment 5 Cse
14 pages
OS UNIT2 New
PDF
No ratings yet
OS UNIT2 New
17 pages
Unit-6 OSY!
PDF
No ratings yet
Unit-6 OSY!
28 pages
9 File Systems
PDF
No ratings yet
9 File Systems
38 pages
Wa0024
PDF
No ratings yet
Wa0024
30 pages
File System Interface
PDF
No ratings yet
File System Interface
32 pages
Coos Unit V Part 1&2
PDF
No ratings yet
Coos Unit V Part 1&2
16 pages
FILES (Module-5)
PDF
No ratings yet
FILES (Module-5)
11 pages
Unit-Iv File Management
PDF
No ratings yet
Unit-Iv File Management
21 pages
File Concept
PDF
No ratings yet
File Concept
21 pages
ADS-unit 4
PDF
No ratings yet
ADS-unit 4
22 pages
14 File System Interface 26-06-2023
PDF
No ratings yet
14 File System Interface 26-06-2023
28 pages
File System
PDF
No ratings yet
File System
27 pages
File System Implementation
PDF
No ratings yet
File System Implementation
45 pages
OSY Notes Vol 2 (6th Chapter) - Ur Engineering Friend
PDF
No ratings yet
OSY Notes Vol 2 (6th Chapter) - Ur Engineering Friend
23 pages
Files in C
PDF
No ratings yet
Files in C
10 pages
DoQuangHuy HE191197
PDF
No ratings yet
DoQuangHuy HE191197
8 pages
OSY Chapter 6
PDF
No ratings yet
OSY Chapter 6
12 pages
Unit 5 C
PDF
No ratings yet
Unit 5 C
16 pages
Os Chapter 6
PDF
No ratings yet
Os Chapter 6
31 pages
File Management
PDF
No ratings yet
File Management
10 pages
File Management
PDF
No ratings yet
File Management
26 pages
Activity #4
PDF
No ratings yet
Activity #4
8 pages
Unit 4 - File Systems in Operating System
PDF
No ratings yet
Unit 4 - File Systems in Operating System
15 pages
File System
PDF
No ratings yet
File System
8 pages
File System Interface
PDF
No ratings yet
File System Interface
5 pages
File 1. File Concept
PDF
No ratings yet
File 1. File Concept
6 pages
M-Way, B Tree, B+ Tree
PDF
No ratings yet
M-Way, B Tree, B+ Tree
4 pages
Presentation On Data File Handling
PDF
No ratings yet
Presentation On Data File Handling
36 pages
Chemistry
PDF
No ratings yet
Chemistry
16 pages
File Systems
PDF
No ratings yet
File Systems
39 pages
Py Exp 2.3
PDF
No ratings yet
Py Exp 2.3
1 page
File System: 1.1 Metadata
PDF
No ratings yet
File System: 1.1 Metadata
9 pages