Computer Science Exam 8

.docx

School

James Madison University *

*We aren’t endorsed by this school

Course

446

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

5

Uploaded by DeaconKomodoDragon3841

Report
**Computer Science Exam: Operating Systems (CS405)** --- **Instructions:** 1. Answer all questions. 2. Write your answers in the spaces provided. 3. Ensure your responses are clear and concise. --- **Section A: Multiple Choice (1 mark each)** 1. **What is the primary function of an operating system?** a) Running applications b) Managing hardware resources c) Providing internet connectivity d) Designing software algorithms **Answer: b** 2. **Which scheduling algorithm aims to minimize the average waiting time of processes?** a) Round Robin b) Shortest Job Next (SJN) c) First-Come-First-Serve (FCFS) d) Priority Scheduling
**Answer: b** 3. **What is a deadlock in the context of operating systems?** a) A system crash b) A process that terminates unexpectedly c) A state where two or more processes cannot proceed d) A memory leak **Answer: c** --- **Section B: True/False (1 mark each)** 4. **Virtual memory allows processes to execute without being entirely in RAM.** **Answer: True** 5. **Multithreading is a technique where multiple processes share the same address space.** **Answer: False** --- **Section C: Short Answer (2 marks each)**
6. **Explain the purpose of the "page table" in virtual memory systems.** **Answer:** The page table is a data structure used in virtual memory systems to map virtual addresses to physical addresses. It keeps track of the correspondence between the logical addresses generated by a program and the physical addresses in the computer's RAM. This mapping enables efficient memory management, allowing processes to use more memory than physically available. 7. **Discuss one advantage and one disadvantage of using a monolithic kernel in operating systems.** **Answer:** Advantage: Monolithic kernels usually have better performance as they execute faster since they operate in a single address space and communicate through function calls, avoiding the overhead of message passing. Disadvantage: A disadvantage is that a failure in one part of the kernel can potentially crash the entire system, making monolithic kernels less resilient compared to microkernels. --- **Section D: Matching (2 marks each)** Match the operating system term with its description. 8. **A. Thrashing**
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help