Preview

Operating System Question Paper

Satisfactory Essays
Open Document
Open Document
382 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Operating System Question Paper
Operating System
Internal I, 2011 Name : Roll No : Total Marks: 20 Time: 60 Minutes

For Question 1 to 4, Write your answer on this paper. You should EXPLAIN the answer in One or Two Sentence. For Question 4 & 5, Write your answer on Answer script.

1.

(2 points) (TRUE/FALSE) Round Robin(RR) scheduling is non-preemptive where as FCFS and Priority scheduling are preemptive.

2.

(2 points) How many processes will gate created after execution of the following code and Explain (You can show execution diagram) – main() { fork(); fork(); fork(); }

(2 points) (TRUE/FALSE) Suppose a thread is running in a critical section of code, meaning that it has acquired all the locks through proper arbitration. It can get context switched.

3.

4.

(4 points) (TRUE/FALSE) For each of the following thread/process state transitions, whether the transition is legal, (a) Change from thread/process state BLOCKED to thread state RUNNING.

(b) Change from thread/process state RUNNING to thread state BLOCKED.

(5 points) Assume you have the following jobs to execute with one processor, with the jobs arriving in the order listed here: Process P1 P2 P3 P4 P5 Execution time 80 20 10 20 50

5.

a) Suppose a system uses Shortest Job First(SJF) scheduling. Create a Gantt chart illustrating the execution of these processes? b) What is the turnaround time for process P4? c) What is the average wait time for the processes?

(5 points) A restaurant would like to serve four dinner parties, P1 through P4. The restaurant has a total of 8 plates and 12 bowls. Assume that each group of diners will stop eating and wait for the waiter to bring a requested item (plate or bowl) to the table when it is required. Assume that the diners don’t mind waiting. The maximum request and current allocation tables are shown as follows: Maximum Request P1 P2 P3 P4 Plates 7 6 1 2 Bowls 7 10 2 4 Current Allocation Plates P1 P2 P3 P4 2 3 0 1 Bowls 3 5 1 2

6.

a) Determine the Need Matrix

You May Also Find These Documents Helpful

  • Better Essays

    Ac505 Midterm

    • 953 Words
    • 4 Pages

    5. (TCO F) Which of the following statements is true? I. Overhead application may be made slowly as a job is worked on.II. Overhead application may be made in a single application at the time of completion of the job.III. Overhead application should be made to any job not completed at year-end in order to properly value the work in process inventory.(Points : 6)…

    • 953 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    16. Which one of the following describes the forwarding logic followed by switch when it receives a frame destined to a MAC address that is in its MAC address table?…

    • 901 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    15. Random numbers generated by a __________ process instead of a __________ process are pseudorandom numbers.…

    • 850 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    _____________ is the ability of a central processing unit (CPU) or a single core in a multi-core processor to execute multiple processesor threads concurrently…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Is505 Final

    • 1919 Words
    • 8 Pages

    5. (TCO B,C) Decide in each of the following sub-questions i and ii, whether the statement is true or false. If the statement is false, explain why it is false, and show how you will rephrase the statement to make it meaningfully true.…

    • 1919 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    nt1210 unit 1 lab1

    • 1325 Words
    • 5 Pages

    5. Which of the following are true about the commonly used version of the TCP/IP model as shown in this chapter? (Choose two answers.)…

    • 1325 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Nt1330 Unit 1 Study Guide

    • 2629 Words
    • 11 Pages

    CPU scheduler is to selects from among the processes in memory ready to execute and allocates the CPU to one of them. CPU scheduling decisions may take place when a process:…

    • 2629 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    What is the difference between a multiprocessor and a multiprocessing system? Multiprocessor is when a computer has more than one processor to do the work, Multiprocessing is when one processor does multiple jobs at once. 4. Where on the disk should you put your /boot partition or the root (/)…

    • 680 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT 1210, Unit 3 Homework

    • 1335 Words
    • 5 Pages

    5. Which of the following are true about the commonly used version of the TCP/IP model as shown in this chapter? (Choose two answers.)…

    • 1335 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Sharing allows several processes to access the same portion of main memory (Stallings, 2012). When there are a number of processes executing the same program it is beneficial to allow each process to access the same copy of the program rather than have its own separate copy (Stallings, 2012,). The memory management system must therefore…

    • 573 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Scheduling: Any processor may perform scheduling, which complicates the task of enforcing a scheduling policy and assuring that corruption of the scheduler data structures is avoided. If kernel-level multithreading is used, then the opportunity exists to schedule multiple threads from the same process simultaneously on multiple processors.…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Chapter 4 Solutions

    • 473 Words
    • 2 Pages

    (g) We have to achieve a cycle time of 3600/72=50 seconds/unit. The following task allocation…

    • 473 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    BUAD 304 final study guide

    • 2175 Words
    • 9 Pages

    c. Process Conflict – Conflict over how work gets done. Low levels of this type are FUNCTIONAL.…

    • 2175 Words
    • 9 Pages
    Satisfactory Essays
  • Powerful Essays

    Module 8 Review Questions

    • 1981 Words
    • 7 Pages

    1. Provide some examples in business or daily life in which a controlled process is erroneously adjusted and an out-of-control process is ignored. What implications do these errors have?…

    • 1981 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    3. Which of the following statements is NOT true of deductions from the product-process matrix:…

    • 420 Words
    • 2 Pages
    Satisfactory Essays