Question
Operating system 1. Why do we use tables, like the file table, rather than just passing pointers to kernel data structures directly to an application?
Operating system
1. Why do we use tables, like the file table, rather than just passing pointers to kernel data structures directly to an application?
2. What would be the value of large page sizes, particularly to scientific applications with large memory requirements?
3. Would it make sense to let applications supply their own virtual-to-physical address translation routines? Why or why not?
4. Would passing strings on the stack rather than in buffers be more or less efficient?
5. Assume the following line of code appears in the Pintos system call to open after reading in a bounded buffer of characters (the filename). Why would it be there?
filename[SizeExceptionFilename - 1] = '\0';
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started