OPERATING SYSTEM

105403
Back to OPERATING SYSTEM

Module 2: Processes

  1. Q1a. A process is moved to the ready state when its time quantum expires. (i) Blocked (ii) New (iii) Running (iv) Suspended20242m

    Module 2: Processes

    A process is moved to the ready state when its time quantum expires.
    (i) Blocked
    (ii) New
    (iii) Running
    (iv) Suspended

    View this question on its own page →
  2. Q1b. Which of the following is also called job scheduler? (i) DMA controller (ii) Short-term scheduler (iii) CPU scheduler (iv) Long-term scheduler20242m

    Module 2: Processes

    Which of the following is also called job scheduler?
    (i) DMA controller
    (ii) Short-term scheduler
    (iii) CPU scheduler
    (iv) Long-term scheduler

    View this question on its own page →
  3. Q1c. Scheduling a process from ready Queue to CPU is done by (i) Short term scheduler (ii) Midle term scheduler (iii) Long term scheduler (iv) Dispatcher20232m

    Module 2: Processes

    Scheduling a process from ready Queue to CPU is done by
    (i) Short term scheduler
    (ii) Midle term scheduler
    (iii) Long term scheduler
    (iv) Dispatcher

    View this question on its own page →
  4. Q1c. Define jacketing.20222m

    Module 2: Processes

    Define jacketing.

    View this question on its own page →
  5. Q1d. Which process can be affected by other processes executing in the system? (i) Independent process (ii) Co-operative process (iii) Dependent Process (iv) child process20242m

    Module 2: Processes

    Which process can be affected by other processes executing in the system?
    (i) Independent process
    (ii) Co-operative process
    (iii) Dependent Process
    (iv) child process

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

    Module 2: Processes

    ______ 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. 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

    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 →
  8. Q1i. Fork is used to (i) dispatch a task (ii) create a new job (iii) create a new process (iv) increase the priority of a task20232m

    Module 2: Processes

    Fork is used to
    (i) dispatch a task
    (ii) create a new job
    (iii) create a new process
    (iv) increase the priority of a task

    View this question on its own page →
  9. Q1i. When the event for which a thread is blocked occurs? (i) Thread moves to the ready queue (ii) Thread remains blocked (iii) Thread completes (iv) A new thread is provided20222m

    Module 2: Processes

    When the event for which a thread is blocked occurs?
    (i) Thread moves to the ready queue
    (ii) Thread remains blocked
    (iii) Thread completes
    (iv) A new thread is provided

    View this question on its own page →
  10. Q1j. Waiting Time is calculated as (i) Turnaround Time - Burst Time (ii) Turnaround Time - Arrival Time (iii) Completion Time - Arrival Time (iv) Completion Time - Burst Time20242m

    Module 2: Processes

    Waiting Time is calculated as
    (i) Turnaround Time - Burst Time
    (ii) Turnaround Time - Arrival Time
    (iii) Completion Time - Arrival Time
    (iv) Completion Time - Burst Time

    View this question on its own page →
  11. Q2a. Define Thread? List some of the benefits of multithreading. Demonstrate the three methods to implement Threads.20247m

    Module 2: Processes

    Define Thread? List some of the benefits of multithreading. Demonstrate the three methods to implement Threads.

    View this question on its own page →
  12. Q2a. Explain the concept of a process. With the help of a state transition diagram, discuss the various process states.20237m

    Module 2: Processes

    Explain the concept of a process. With the help of a state transition diagram, discuss the various process states.

    View this question on its own page →
  13. Q2a. What is process control block?20197m

    Module 2: Processes

    What is process control block?

    View this question on its own page →
  14. Q2b. Explain the difference among short-term, medium-term and long-term scheduling.20197m

    Module 2: Processes

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

    View this question on its own page →
  15. Q2b. Describe the differences among short term, medium-term, and long-term scheduling.20237m

    Module 2: Processes

    Describe the differences among short term, medium-term, and long-term scheduling.

    View this question on its own page →
  16. Q2b. Assume the following workload in a system: | Process | Arrival Time | Burst Time | | :--- | :--- | :--- | | P0 | 1 | 3 | | P1 | 0 | 6 | | P2 | 3 | 2 | | P3 | 4 | 7 | | P4 | 2 | 8 | | P5 | 6 | 5 | Illustrating the execution of these job using Round Robin Scheduling algorithm calculate when given Time Quantum=3 : (i) Average Turn Around Time (ii) Average Waiting Time20247m

    Module 2: Processes

    Assume the following workload in a system:

    Process Arrival Time Burst Time
    P0 1 3
    P1 0 6
    P2 3 2
    P3 4 7
    P4 2 8
    P5 6 5

    Illustrating the execution of these job using Round Robin Scheduling algorithm calculate when given Time Quantum=3 :
    (i) Average Turn Around Time
    (ii) Average Waiting Time

    View this question on its own page →
  17. 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

    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 →
  18. Q3a. Differentiate between: (i) User level Thread and Kernel level Thread. (ii) Preemptive scheduling and Non-preemptive scheduling (iii) Contiguous and Indexed allocation method20249m

    Module 2: Processes

    Differentiate between:
    (i) User level Thread and Kernel level Thread.
    (ii) Preemptive scheduling and Non-preemptive scheduling
    (iii) Contiguous and Indexed allocation method

    View this question on its own page →
  19. Q3a. Including the initial parent process, how many processes are created by the program shown below? ``c #include<stdio.h> #include<unistd.h> int main() { /*fork a child process */ fork(); /* fork another child process*/ fork(); /* and fork another*/ fork(); return 0; } ``20227m

    Module 2: Processes

    Including the initial parent process, how many processes are created by the program shown below?

    #include<stdio.h>
    #include<unistd.h>
    int main()
    {
        /*fork a child process */
        fork();
        /* fork another child process*/
        fork();
        /* and fork another*/
        fork();
        return 0;
    }
    
    View this question on its own page →
  20. Q3b. Describe the differences among short-term, medium-term, and long-term scheduling.20227m

    Module 2: Processes

    Describe the differences among short-term, medium-term, and long-term scheduling.

    View this question on its own page →
  21. Q4a. What are the differences between user-level threads and kernel-level threads? Under what circumstances is one type better than the other?20235m

    Module 2: Processes

    What are the differences between user-level threads and kernel-level threads? Under what circumstances is one type better than the other?

    View this question on its own page →
  22. Q4a. An airline reservation system, using a centralized database service, processes user requests concurrently. Is it preferable to use threads rather than processes in this system? Give reasons for your answer.20227m

    Module 2: Processes

    An airline reservation system, using a centralized database service, processes user requests concurrently. Is it preferable to use threads rather than processes in this system? Give reasons for your answer.

    View this question on its own page →
  23. Q4b. What resources are used when a thread is created? How do they differ from those used when a process is created?20235m

    Module 2: Processes

    What resources are used when a thread is created? How do they differ from those used when a process is created?

    View this question on its own page →
  24. Q4b. Consider a system running ten I/O-bound tasks and one CPU-bound task. Assume that the I/O-bound tasks issue an I/O operation once for every millisecond of CPU computing and that each I/O operation takes 10 milliseconds to complete. Also assume that the context-switching overhead is 0.1 millisecond and that all processes are long-running tasks. Describe the CPU utilization for round-robin scheduler when: (i) the time quantum is 1 millisecond; (ii) the time quantum is 10 milli-seconds.20227m

    Module 2: Processes

    Consider a system running ten I/O-bound tasks and one CPU-bound task. Assume that the I/O-bound tasks issue an I/O operation once for every millisecond of CPU computing and that each I/O operation takes 10 milliseconds to complete. Also assume that the context-switching overhead is 0.1 millisecond and that all processes are long-running tasks. Describe the CPU utilization for round-robin scheduler when:
    (i) the time quantum is 1 millisecond;
    (ii) the time quantum is 10 milli-seconds.

    View this question on its own page →
  25. Q4c. Describe the actions taken by a kernel to context switch between kernel-level threads.20234m

    Module 2: Processes

    Describe the actions taken by a kernel to context switch between kernel-level threads.

    View this question on its own page →
  26. Q6. Five batch jobs, A through E, arrive at a computer center at essentially the same time. They have an estimated running time of 15, 9, 3, 6 and 12 minutes, respectively. Their (externally defined) priorities are 6, 3, 7, 9 and 4, respectively, with a lower value corresponding to a higher priority. For each of the following scheduling algorithms, determine the waiting time for each process and the average waiting for all jobs. Ignore process switching overhead. Explain how you arrived at your answers. In the last three cases, assume that only one job at a time runs until it finishes and that all jobs are completely processor bound: (a) Priority scheduling (b) FCFS (run in order 15, 9, 3, 6 and 12) (c) Shortest job first202214m

    Module 2: Processes

    Five batch jobs, A through E, arrive at a computer center at essentially the same time. They have an estimated running time of 15, 9, 3, 6 and 12 minutes, respectively. Their (externally defined) priorities are 6, 3, 7, 9 and 4, respectively, with a lower value corresponding to a higher priority.
    For each of the following scheduling algorithms, determine the waiting time for each process and the average waiting for all jobs. Ignore process switching overhead. Explain how you arrived at your answers. In the last three cases, assume that only one job at a time runs until it finishes and that all jobs are completely processor bound:
    (a) Priority scheduling
    (b) FCFS (run in order 15, 9, 3, 6 and 12)
    (c) Shortest job first

    View this question on its own page →
  27. Q6a. What is a thread?20195m

    Module 2: Processes

    What is a thread?

    View this question on its own page →
  28. Q6b. How is thread different from a process?20195m

    Module 2: Processes

    How is thread different from a process?

    View this question on its own page →
  29. Q6c. What resources are used when a thread is created?20194m

    Module 2: Processes

    What resources are used when a thread is created?

    View this question on its own page →
  30. Q9d. Write short note on: Process Control Block20237m

    Module 2: Processes

    Write short note on: Process Control Block

    View this question on its own page →