It is in the mo]ultiprogramming section of the Narten's Nachos Raodmap.
2. What if the FileId? Where is generated?
You have to maintain a OpenFileTable in your process.
This table is a per thread data. FileID is the entry # (physical row#)
of the file
table. ) and 1 file IDs are reserved for the
console.