Operating System

106503
Back to Operating System

Module 2: Processes & Scheduling

  1. Q1a. Which of the following is an advantage of using threads? (i) Increased hardware costs (ii) Lower throughput (iii) Efficient utilization of CPU resources (iv) Increased memory consumption20242m

    Module 2: Processes & Scheduling

    Which of the following is an advantage of using threads?
    (i) Increased hardware costs
    (ii) Lower throughput
    (iii) Efficient utilization of CPU resources
    (iv) Increased memory consumption

    View this question on its own page →
  2. Q1a. Which scheduling policy is most suitable for a time shared operating system: (i) Shortest job first (ii) Round Robin (iii) FCFS (iv) Elevator20222m

    Module 2: Processes & Scheduling

    Which scheduling policy is most suitable for a time shared operating system:

    (i) Shortest job first
    (ii) Round Robin
    (iii) FCFS
    (iv) Elevator

    View this question on its own page →
  3. Q1b. Suppose that a process is in BLOCKED state waiting for some I/O service. When the service is completed, it goes to the? (i) RUNNING state (ii) READY state (iii) SUSPENDED state (iv) TERMINATED state20232m

    Module 2: Processes & Scheduling

    Suppose that a process is in BLOCKED state waiting for some I/O service. When the service is completed, it goes to the?
    (i) RUNNING state
    (ii) READY state
    (iii) SUSPENDED state
    (iv) TERMINATED state

    View this question on its own page →
  4. Q1b. A process executes the following segment of code: ``c for (i = 1; i <= n; i++) fork(); `` The number of new processes created is: (i) n (ii) (n(n+1))/2 (iii) 2^n - 1 (iv) 2^n20222m

    Module 2: Processes & Scheduling

    A process executes the following segment of code:

    for (i = 1; i <= n; i++)
    fork();
    

    The number of new processes created is:

    (i) n
    (ii) (n(n+1))/2
    (iii) 2^n - 1
    (iv) 2^n

    View this question on its own page →
  5. Q1b. Which scheduler selects processes from the ready queue and allocates the CPU? (i) Long-term scheduler (ii) Medium-term scheduler (iii) Short-term scheduler (iv) Batch scheduler20252m

    Module 2: Processes & Scheduling

    Which scheduler selects processes from the ready queue and allocates the CPU?

    (i) Long-term scheduler
    (ii) Medium-term scheduler
    (iii) Short-term scheduler
    (iv) Batch scheduler

    View this question on its own page →
  6. Q1c. ______ is a technique of improving the priority of process waiting in queue for CPU allocation: (i) Starvation (ii) Ageing (iii) Revocation (iv) Relocation20222m

    Module 2: Processes & Scheduling

    ______ is a technique of improving the priority of process waiting in queue for CPU allocation:

    (i) Starvation
    (ii) Ageing
    (iii) Revocation
    (iv) Relocation

    View this question on its own page →
  7. Q1d. Scheduling a process from Ready Queue to CPU is done by (i) Short Term Scheduler (ii) Middle Term Scheduler (iii) Long Term Scheduler (iv) Dispatcher20232m

    Module 2: Processes & Scheduling

    Scheduling a process from Ready Queue to CPU is done by
    (i) Short Term Scheduler
    (ii) Middle Term Scheduler
    (iii) Long Term Scheduler
    (iv) Dispatcher

    View this question on its own page →
  8. Q1d. Interval between the time of submission and first response to the job is called: (i) waiting time (ii) turnaround time (iii) throughput (iv) response time20222m

    Module 2: Processes & Scheduling

    Interval between the time of submission and first response to the job is called:

    (i) waiting time
    (ii) turnaround time
    (iii) throughput
    (iv) response time

    View this question on its own page →
  9. Q1d. Which type of thread is managed directly by the operating system kernel? (i) User-level thread (ii) Kernel-level thread (iii) Single thread (iv) Background thread20252m

    Module 2: Processes & Scheduling

    Which type of thread is managed directly by the operating system kernel?

    (i) User-level thread
    (ii) Kernel-level thread
    (iii) Single thread
    (iv) Background thread

    View this question on its own page →
  10. Q1e. A process is: (i) program in high level language kept on disk (ii) content of main memory (iii) program in execution (iv) job in secondary memory20222m

    Module 2: Processes & Scheduling

    A process is:

    (i) program in high level language kept on disk
    (ii) content of main memory
    (iii) program in execution
    (iv) job in secondary memory

    View this question on its own page →
  11. Q1g. The processes that are residing in main memory and are ready and waiting to execute are kept on a list called (i) job queue (ii) ready queue (iii) execution queue (iv) process queue20192m

    Module 2: Processes & Scheduling

    The processes that are residing in main memory and are ready and waiting to execute are kept on a list called

    (i) job queue
    (ii) ready queue
    (iii) execution queue
    (iv) process queue

    View this question on its own page →
  12. Q1i. The technique of gradually increasing the priority of a process that wait in a system for a long time is known as? (i) blocking (ii) ageing (iii) starvation (iv) convoy effect20232m

    Module 2: Processes & Scheduling

    The technique of gradually increasing the priority of a process that wait in a system for a long time is known as?
    (i) blocking
    (ii) ageing
    (iii) starvation
    (iv) convoy effect

    View this question on its own page →
  13. Q1i. Which module gives control of the CPU to the process selected by the short-term scheduler? (i) dispatcher (ii) scheduler (iii) Interrupt (iv) None of these20222m

    Module 2: Processes & Scheduling

    Which module gives control of the CPU to the process selected by the short-term scheduler?

    (i) dispatcher
    (ii) scheduler
    (iii) Interrupt
    (iv) None of these

    View this question on its own page →
  14. Q2. What is process control block? Explain it. Discuss the difference among short-term, medium-term and long-term scheduling.201914m

    Module 2: Processes & Scheduling

    What is process control block? Explain it.

    Discuss the difference among short-term, medium-term and long-term scheduling.

    View this question on its own page →
  15. Q2a. Write a program using "fork" to demonstrate the parent-child relationship of processes.20237m

    Module 2: Processes & Scheduling

    Write a program using "fork" to demonstrate the parent-child relationship of processes.

    View this question on its own page →
  16. Q2a. What do you understand by the term Process in Operating System? Contrast the types of Interprocess Communication models.20247m

    Module 2: Processes & Scheduling

    What do you understand by the term Process in Operating System? Contrast the types of Interprocess Communication models.

    View this question on its own page →
  17. Q2b. What are the two differences between user-level thread and kernel level thread? Under what circumstance is one type better than the other?20247m

    Module 2: Processes & Scheduling

    What are the two differences between user-level thread and kernel level thread? Under what circumstance is one type better than the other?

    View this question on its own page →
  18. Q2b. Consider the following four processes with following details (time given in ms): | Process | Arrival Time | CPU Burst Time | | :--- | :---: | :---: | | P1 | 0 | 12 | | P2 | 0 | 10 | | P3 | 1 | 4 | | P4 | 4 | 10 | | P5 | 2 | 12 | Draw the Gantt chart using RR scheduling with time slice 3ms. Calculate average waiting time and average turn-around time.20237m

    Module 2: Processes & Scheduling

    Consider the following four processes with following details (time given in ms):

    Process Arrival Time CPU Burst Time
    P1 0 12
    P2 0 10
    P3 1 4
    P4 4 10
    P5 2 12

    Draw the Gantt chart using RR scheduling with time slice 3ms. Calculate average waiting time and average turn-around time.

    View this question on its own page →
  19. Q3. Consider the following process : | Process | Arrival Time | Burst Time | | :--- | :--- | :--- | | P1 | 0.0 | 7 | | P2 | 2.0 | 4 | | P3 | 4.0 | 1 | | P4 | 5.0 | 4 | Considering non-preemptive and preemptive SJF algorithm, find out average waiting time and average turnaround time in both cases.201914m

    Module 2: Processes & Scheduling

    Consider the following process :

    Process Arrival Time Burst Time
    P1 0.0 7
    P2 2.0 4
    P3 4.0 1
    P4 5.0 4

    Considering non-preemptive and preemptive SJF algorithm, find out average waiting time and average turnaround time in both cases.

    View this question on its own page →
  20. Q3a. Explain the different states of a process during its life cycle using transition diagram.20235m

    Module 2: Processes & Scheduling

    Explain the different states of a process during its life cycle using transition diagram.

    View this question on its own page →
  21. Q3a. Describe the fundamental role of "Process Scheduling" in a multiprogramming operating system. Identify and explain at least three scheduling criteria.20247m

    Module 2: Processes & Scheduling

    Describe the fundamental role of "Process Scheduling" in a multiprogramming operating system. Identify and explain at least three scheduling criteria.

    View this question on its own page →
  22. Q3a. What is a Process Control Block? Explain its structure and significance in process management.20257m

    Module 2: Processes & Scheduling

    What is a Process Control Block? Explain its structure and significance in process management.

    View this question on its own page →
  23. Q3b. Consider the following set of processes with the length of the CPU Burst given in milliseconds: | Process | Burst Time | Priority | | :--- | :--- | :--- | | A | 10 | 3 | | B | 1 | 1 | | C | 2 | 3 | | D | 1 | 4 | | E | 5 | 2 | The processes are assumed to have arrived in order A, B, C, D, E all at time 0. Draw the Gantt charts that illustrate the execution of FCFS and SJF scheduling algorithm. Show which algorithm results in the minimum average waiting time.20247m

    Module 2: Processes & Scheduling

    Consider the following set of processes with the length of the CPU Burst given in milliseconds:

    Process Burst Time Priority
    A 10 3
    B 1 1
    C 2 3
    D 1 4
    E 5 2

    The processes are assumed to have arrived in order A, B, C, D, E all at time 0.
    Draw the Gantt charts that illustrate the execution of FCFS and SJF scheduling algorithm. Show which algorithm results in the minimum average waiting time.

    View this question on its own page →
  24. Q3b. Define threads and explain their various states. Compare user-level threads with kernel-level threads.20257m

    Module 2: Processes & Scheduling

    Define threads and explain their various states. Compare user-level threads with kernel-level threads.

    View this question on its own page →
  25. Q3c. Explain user and kernel level threads in detail.20235m

    Module 2: Processes & Scheduling

    Explain user and kernel level threads in detail.

    View this question on its own page →
  26. Q4a. Discuss multiprocessor scheduling and real-time scheduling techniques.20257m

    Module 2: Processes & Scheduling

    Discuss multiprocessor scheduling and real-time scheduling techniques.

    View this question on its own page →
  27. Q5a. Explain process state transition diagram of an operating system.20227m

    Module 2: Processes & Scheduling

    Explain process state transition diagram of an operating system.

    View this question on its own page →
  28. Q5b. Consider the following CPU processes with arrival times 0 and CPU bursts (in milliseconds) as given below: | Process | Burst time | |---|---| | P1 | 24 | | P2 | 3 | | P3 | 3 | If the Round Robin Scheduling is used with time quantum of 4 milliseconds to schedule the processes. Draw the Gantt chart and calculate the average waiting time across all processes (in milliseconds).20227m

    Module 2: Processes & Scheduling

    Consider the following CPU processes with arrival times 0 and CPU bursts (in milliseconds) as given below:

    Process Burst time
    P1 24
    P2 3
    P3 3

    If the Round Robin Scheduling is used with time quantum of 4 milliseconds to schedule the processes. Draw the Gantt chart and calculate the average waiting time across all processes (in milliseconds).

    View this question on its own page →
  29. Q6. (a) What is a thread? (b) How is thread different from a process? (c) What resources are used when a thread is created?201914m

    Module 2: Processes & Scheduling

    (a) What is a thread?

    (b) How is thread different from a process?

    (c) What resources are used when a thread is created?

    View this question on its own page →
  30. Q6a. Describe the objectives of process scheduling. Explain the roles of long-term, medium-term, and short-term schedulers.20257m

    Module 2: Processes & Scheduling

    Describe the objectives of process scheduling. Explain the roles of long-term, medium-term, and short-term schedulers.

    View this question on its own page →
  31. Q7b. Consider the following set of processes with the length of the CPU burst given in milliseconds: | Process | Burst Time | Priority | | :---: | :---: | :---: | | A | 10 | 3 | | B | 1 | 1 | | C | 2 | 3 | | D | 1 | 4 | | E | 5 | 2 | The processes are assumed to have arrived in order A, B, C, D, E all at time 0. Draw the Gantt charts that illustrate the execution of SJF scheduling algorithm. Show which algorithm results in the minimum average waiting time.20257m

    Module 2: Processes & Scheduling

    Consider the following set of processes with the length of the CPU burst given in milliseconds:

    Process Burst Time Priority
    A 10 3
    B 1 1
    C 2 3
    D 1 4
    E 5 2

    The processes are assumed to have arrived in order A, B, C, D, E all at time 0. Draw the Gantt charts that illustrate the execution of SJF scheduling algorithm. Show which algorithm results in the minimum average waiting time.

    View this question on its own page →
  32. Q8a. What is thread? Explain the benefits of using thread.20227m

    Module 2: Processes & Scheduling

    What is thread? Explain the benefits of using thread.

    View this question on its own page →
  33. Q9a. Write a short note on: Process State transitions20257m

    Module 2: Processes & Scheduling

    Write a short note on:

    Process State transitions

    View this question on its own page →
  34. Q9c. Write short notes on: Process Control Block (PCB)20237m

    Module 2: Processes & Scheduling

    Write short notes on: Process Control Block (PCB)

    View this question on its own page →
  35. Q9c. Write short notes on: Process Control Block20227m

    Module 2: Processes & Scheduling

    Write short notes on: Process Control Block

    View this question on its own page →