Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. (2 points) Which of the following cause(s) an exception? a) Timer (hardware) tick b) Syscall open () to open a file c) Disk lVO
1. (2 points) Which of the following cause(s) an exception? a) Timer (hardware) tick b) Syscall open () to open a file c) Disk lVO event d) All of the above 2. (2 points) Which of the following gives an accurate access time ordering for the involved storage-device levels? (From fastest to the slowest) a) RAM, Electronic Disk, Magnetic Disk, Optical Disk bj RAM, CPU Cache, HDD, SSD c) Registers, Tape, RAM, Magnetic Dislk d) Registers, CPU Cache, Magnetic Disk, RAM 3. (2 points) When a user process attempts to execute the yield () syscal a) This will cause a software interrupt b) The system will switch to kernel mode c) This will trigger a context switch performed by OS d) All of the above 4. (2 points) Assume that in Linux, a process Q successfully creates a child process Wusing fork (). In this scenario a) Q shares the same global variables with W b) W and Q have exactly the same process identifier c) The child process W's process identifier is 0 d) W gets a copy of Q's memory address space 5. (2 points) Which of the following act makes each process think it has its own CPU (CPU virtualization) a) Function call to pthread_create () b) Interrupt c) Swapping d) Context switch
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