Question
OSTEP TEXT CAN BE FOUND HERE: http://pages.cs.wisc.edu/~remzi/OSTEP/ Reading assignment. Read Chapters 13 and 14 of the OSTEP (Operating Systems: Three Easy Pieces) text and answer
OSTEP TEXT CAN BE FOUND HERE:
http://pages.cs.wisc.edu/~remzi/OSTEP/
Reading assignment. Read Chapters 13 and 14 of the OSTEP (Operating Systems: Three Easy Pieces) text and answer the following questions by editing file hw6.txt attached to the homework.
What is the main aim of virtual memory?
a program behaves as if it has its own private memory space
I/O accesses are treated as memory accesses
memory addresses can vary in length
If your C code outputs a pointer value, is it a virtual or physical address? a) virtual b) physical.
If free() a system call?
Whats the problem with the following C code? (include statements not shown) Select one of the numbers 1-3 listed below: __________________
main() {
char *s = "testing";
char *t = malloc(strlen(s));
strcpy(t, s);
printf("%s ", t);
exit(0);
}
the problem is with the malloc call
the problem is with the strcpy call
the problem is with the declaration of variable s
Can the size of the heap part of a process address space change over the lifetime of the process? (Yes/No) ___________
OSTEP TEXT CAN BE FOUND HERE:
http://pages.cs.wisc.edu/~remzi/OSTEP/
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