midterm_11a - (12 pts.) 4. Briefly describe three general...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COP 4610 Computer Operating Systems Summer 2011 Name: ______________________________ Midterm Last 5 digits of ZN : Zxxx __ __ __ __ __ This is a CLOSED books/notes test. You are NOT allowed to consult any material you have brought into the classroom. NO exchange of information is allowed among students. Write your name and ZN on each sheet detached. 1. Which of the following instructions should be privileged? Circle the correct answer for each one. (16 pts.) a) S e t v a l u e o f t i m e r y e s / n o b) R e a d t
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 3. For what types of operations is DMA useful? Explain.
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (12 pts.) 4. Briefly describe three general methods for passing parameters to the operating system. (12 pts.) 5. Briefly describe how creating a process is different from creating a thread. (12 pts.) 3 6. What is the main advantage of the microkernel approach to system design? (12 pts.) 7. When a process creates a new process using the fork() system call, which of the following states is shared between the parent process and the child process? (12 pts.) a) Stack b) Heap c) Shared memory segments 8. Show output of the following program. (12 pts.) #include <stdio.h> #include <stdlib.h> int value = 20; int main() { pid_t pid; value += 10; pid = fork(); if (pid == 0) { value += 5; } else if (pid > 0) { wait(NULL); printf("Parent: value = %d", value); exit(0); } }...
View Full Document

This note was uploaded on 07/13/2011 for the course COP 4610 taught by Professor Staff during the Summer '08 term at FAU.

Page1 / 3

midterm_11a - (12 pts.) 4. Briefly describe three general...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online