2-sol - OperatingSystem Structures CHAPTER 2 Practice...

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

View Full Document Right Arrow Icon
2 CHAPTER Operating- System Structures Practice Exercises 2.1 What is the purpose of system calls? Answer: System calls allow user-level processes to request services of the operating system. 2.2 What are the Fve major activities of an operating system in regard to process management? Answer: a. The creation and deletion of both user and system processes b. The suspension and resumption of processes c. The provision of mechanisms for process synchronization d. The provision of mechanisms for process communication e. The provision of mechanisms for deadlock handling 2.3 What are the three major activities of an operating system in regard to memory management? Answer: a. Keep track of which parts of memory are currently being used and by whom. b. Decide which processes are to be loaded into memory when mem- ory space becomes available. c. Allocate and deallocate memory space as needed. 2.4 What are the three major activities of an operating system in regard to secondary-storage management? Answer: 5
Background image of page 1

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

View Full DocumentRight Arrow Icon
6 Chapter 2 Operating-System Structures • Free-space management. • Storage allocation. • Disk scheduling. 2.5 What is the purpose of the command interpreter? Why is it usually separate from the kernel? Answer: It reads commands from the user or from a ±le of commands and executes them, usually by turning them into one or more system calls. It is usually not part of the kernel since the command interpreter is subject to changes. 2.6 What system calls have to be executed by a command interpreter or shell in order to start a new process? Answer: In Unix systems, a fork system call followed by an exec system call need to be performed to start a new process. The fork call clones the currently executing process, while the exec call overlays a new process
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/05/2008 for the course CSCE 4000 taught by Professor Anonymous during the Spring '08 term at Arkansas.

Page1 / 4

2-sol - OperatingSystem Structures CHAPTER 2 Practice...

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