cop4600-sp08-quiz1Solutions

cop4600-sp08-quiz1Solutions - (a) computing square root of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
COP4600 Operating Systems Solutions for Quiz 1 Thursday, January 24th 2008 Prepared by Tuba Yavuz-Kahveci University of Florida [email protected] Questions There are 3 questions. Please read the questions carefully. Good luck! 1. (2 pts) What is a system call? Define clearly. Answer: A system call is a function call that changes the CPU’s mode from user mode to kernel mode to let the operating system retrieve system related information or complete a system level task on behalf of the user application. 2. (1.5 pts) Which of the following actions require some system call? Mark the ones that apply.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (a) computing square root of a floating point number (b) writing to a file (c) creating a process (d) comparing two strings (e) reading from the keyboard Answer: b,c, and e. 3. (1.5 pts) Match each system call on the left to the correct definition on the right. 1. fork a. replaces core image of a process with a new program 2. read b. creates a new process 3. wait c. terminates a process and passes termination status 4. execvp d. gets input 5. exit e. blocks until a child process terminates and when that happens extracts the status Answer: 1-b, 2-d, 3-e, 4-a, 5-c....
View Full Document

This test prep was uploaded on 04/18/2008 for the course COP 4600 taught by Professor Yavuz-kahveci during the Spring '07 term at University of Florida.

Ask a homework question - tutors are online