i need the algorithm for file allocation methods..
algorithm for file allocation methods ?
Collapse
X
-
What type of file system are you using? Is this an OS project? How does your OS indicate the usage of memory?
In general:
1. Get filesize.
2. Find free memory in file system at least of that size.
3. Mark this memory as used in file system tables.
4. Return address of memory area.
2. May be more or less complicated depending on what type of algorithms you choose to use.
Comment