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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!