EXAMSHARE

Western Delta University, Oghara Delta State

department of computer science
college of computing
western delta university

first semester examination 2023/2024 session

CSC303 - operating systems time: 2hrs

Answer any four (4) questions


  1. Question 1 (17.5 marks)

    1. What is the relationship between a process and a thread? (2.5 marks)
    2. Briefly explain the term "Mutual Exclusion" as it pertains to operating system processes. (3 marks)
    3. Discuss briefly the principle of Shared Memory as it concerns inter-process communication. (4 marks)
    4. Discuss briefly the Producer/Consumer problem. (6 marks)
    5. List two (2) functions of an operating system. (2 marks)
  2. Question 2 (17.5 marks)

    1. Highlight three (3) functions of an operating system. (3 marks)
    2. What is the relationship between a Race condition and a Critical Region? (2.5 marks)
    3. Highlight three (3) types of operating systems. (6 marks)
    4. Differentiate between Concurrency and Parallelism. (3 marks)
    5. What are the Distributed Operating Systems? (3 marks)
  3. Question 3 (17.5 marks)

    1. State one advantage of the Round Carbin Scheduling. (1.5 marks)
    2. Differentiate between the Shortest Job First (SIF) and Priority scheduling algorithm. (4 marks)
    3. Write a short note on the Multilevel Queue Scheduling algorithm. (3 marks)
    4. Differentiate between a Non-Preemptive and Preemptive scheduling algorithm. (4 marks)
    5. Using a Gantt chart, depict the otdre in which the processes displayed below will be executed using the Shortest Job First (SIF) algorithm stating their Start time and Finish time? (5 marks)
      S/NProcessArrival Time (t)Execution Time/CPU Cycle
      1A08 seconds
      2B16 seconds
      3C24 seconds
      4D33 seconds
      5E42 seconds
  4. Question 4 (17.5 marks)

    1. With the aid of the diagram describe the possible states of a process P. (5 marks)
    2. What is the importance of an operating system in a computer system? (1.5 marks)
    3. What is a Spinlock (3 marks)
    4. Explain briefly the components of a process. (5 marks)
    5. Write short note on Interrupt Handling. (3 marks)
  5. Question 5 (17.5 marks)

    1. Differentiate between a program and a process. (3 marks)
    2. Write a short note on Monitors. (3 marks)
    3. Briefly explain the term "Resource Allocation" in operating systems. (4 marks)
    4. State two (2) conditions that must be satisfied in a Readers/Writers Problem? (4 marks)
    5. Differentiate between a Binary and Counting Semaphores. (3.5 marks)
    6. List two (2) objectives of an operating system. (2 marks)
  6. Question 6 (17.5 marks)

    1. State two (2) techniques used in sychronization of processes and threads. (3 marks)
    2. What is the relationship between a resource allocation graph and a deadlock situation? (2.5 marks)
    3. What is Message Passsing? (5 marks)
    4. Highlight the benefits of Interleaving in Concureency. (3 marks)
    5. An application can be concurrent but not parallel. Explain what this means. (4 marks)