Week 5 Processes and scheduling

Week 5 Processes and scheduling
22問 • 11ヶ月前
  • ユーザ名非公開
  • 通報

    問題一覧

  • 1

    Which of the following statements best describes a process?

    An active entity representing a program in execution.

  • 2

    The ______ section of a process's memory layout contains global and static variables.

    Data

  • 3

    The ___ section of a process’s memory layout contains temporary data storage for function calls (parameters, return addresses, local variables).

    Stack

  • 4

    All of the followings are typically stored in a Provess Control Block (PCB) except:

    CPU manufacturer’s name

  • 5

    A process that is currently waiting for an I/O operation to complete is in the ______ state.

    Waiting (Blocked)

  • 6

    What is the primary purpose of multitasking (or time-sharing) in an operating system?

    To give the illusion that multiple processes are running concurrently on a single CPU.

  • 7

    The process of saving the state of the current running process and restoring the state of another process is called:

    Context switching

  • 8

    Which OS component is responsible for selecting which process from the Ready queue should be allocated the CPU?

    Scheduler

  • 9

    Why are system calls necessary for user programs?

    To request services from the operating system kernel that require privileged access.

  • 10

    When the CPU is executing user applications and has restricted access to hardware and memory, it is operating in:

    User mode

  • 11

    A ______ is a signal that causes the CPU to suspend its current execution and transfer control to a special handler routine.

    Interrupt

  • 12

    A "trap" or "exception" (e.g., division by zero) is a type of:

    Software-generated interrupt

  • 13

    The ______ is a table of pointers that the CPU uses to find the correct handler routine when an interrupt occurs.

    Interrupt Vector (or Interrupt table)

  • 14

    In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the running state to the ________

    Ready state

  • 15

    Suppose that a process is in “Blocked” state waiting for some I/O service. When the service is completed, it goes to the __________

    Ready state

  • 16

    Which one of the following is not a condition for process state transition from running state to wait state?

    If a lower priority process arrived

  • 17

    Consider the following statements about process state transitions for a system using preemptive scheduling. I. A running process can move to ready state. Il. A ready process can move to running state. IlI. A blocked process can move to running state. IV. A blocked process can move to ready state. Which of the above statements are TRUE?

    I, II, and IV only

  • 18

    Suppose that a process is in 'BLOCKED' state waiting for some I/0 service. When the service is completed, it goes to the ____ state.

    ready

  • 19

    Process is in a ready state ____

    when process is scheduled to run after some execution

  • 20

    The maximum number of processes that can be in running state with 1 CPU and n process in a ready state for a computer system is

    1

  • 21

    look at the image to ans the qns

    2, 3 and 5

  • 22

    As process enter the system, they are put into ____ which consists of all the processes in the system.

    job queue

  • 1.1: Software life cycle

    1.1: Software life cycle

    ユーザ名非公開 · 17問 · 2年前

    1.1: Software life cycle

    1.1: Software life cycle

    17問 • 2年前
    ユーザ名非公開

    Intro to computing - Lecture 1

    Intro to computing - Lecture 1

    ユーザ名非公開 · 32問 · 2年前

    Intro to computing - Lecture 1

    Intro to computing - Lecture 1

    32問 • 2年前
    ユーザ名非公開

    Chapter 5

    Chapter 5

    ユーザ名非公開 · 7問 · 2年前

    Chapter 5

    Chapter 5

    7問 • 2年前
    ユーザ名非公開

    Intro to Comp - Lecture 4

    Intro to Comp - Lecture 4

    ユーザ名非公開 · 34問 · 2年前

    Intro to Comp - Lecture 4

    Intro to Comp - Lecture 4

    34問 • 2年前
    ユーザ名非公開

    Intro to comp - Lecture 3

    Intro to comp - Lecture 3

    ユーザ名非公開 · 24問 · 2年前

    Intro to comp - Lecture 3

    Intro to comp - Lecture 3

    24問 • 2年前
    ユーザ名非公開

    Intro to Comp - Lecture 2

    Intro to Comp - Lecture 2

    ユーザ名非公開 · 28問 · 2年前

    Intro to Comp - Lecture 2

    Intro to Comp - Lecture 2

    28問 • 2年前
    ユーザ名非公開

    Quiz 2

    Quiz 2

    ユーザ名非公開 · 7問 · 2年前

    Quiz 2

    Quiz 2

    7問 • 2年前
    ユーザ名非公開

    1.2: Software Engineering Methodologies

    1.2: Software Engineering Methodologies

    ユーザ名非公開 · 20問 · 2年前

    1.2: Software Engineering Methodologies

    1.2: Software Engineering Methodologies

    20問 • 2年前
    ユーザ名非公開

    2.2: Relational Model and ER Model

    2.2: Relational Model and ER Model

    ユーザ名非公開 · 19問 · 2年前

    2.2: Relational Model and ER Model

    2.2: Relational Model and ER Model

    19問 • 2年前
    ユーザ名非公開

    2.3: Converting ER Model to Relational model

    2.3: Converting ER Model to Relational model

    ユーザ名非公開 · 5問 · 2年前

    2.3: Converting ER Model to Relational model

    2.3: Converting ER Model to Relational model

    5問 • 2年前
    ユーザ名非公開

    Quiz 1

    Quiz 1

    ユーザ名非公開 · 8問 · 2年前

    Quiz 1

    Quiz 1

    8問 • 2年前
    ユーザ名非公開

    Week 2 Concurrency

    Week 2 Concurrency

    ユーザ名非公開 · 10問 · 11ヶ月前

    Week 2 Concurrency

    Week 2 Concurrency

    10問 • 11ヶ月前
    ユーザ名非公開

    Week 3 Mutual Exclusion

    Week 3 Mutual Exclusion

    ユーザ名非公開 · 3回閲覧 · 12問 · 11ヶ月前

    Week 3 Mutual Exclusion

    Week 3 Mutual Exclusion

    3回閲覧 • 12問 • 11ヶ月前
    ユーザ名非公開

    Week 4 Synchronisation

    Week 4 Synchronisation

    ユーザ名非公開 · 10問 · 11ヶ月前

    Week 4 Synchronisation

    Week 4 Synchronisation

    10問 • 11ヶ月前
    ユーザ名非公開

    Week 6 Interprocess Communication

    Week 6 Interprocess Communication

    ユーザ名非公開 · 22問 · 11ヶ月前

    Week 6 Interprocess Communication

    Week 6 Interprocess Communication

    22問 • 11ヶ月前
    ユーザ名非公開

    Week 7 File system

    Week 7 File system

    ユーザ名非公開 · 13問 · 11ヶ月前

    Week 7 File system

    Week 7 File system

    13問 • 11ヶ月前
    ユーザ名非公開

    Week 8 Virtual Memory

    Week 8 Virtual Memory

    ユーザ名非公開 · 22問 · 11ヶ月前

    Week 8 Virtual Memory

    Week 8 Virtual Memory

    22問 • 11ヶ月前
    ユーザ名非公開

    Week 9 Architectures

    Week 9 Architectures

    ユーザ名非公開 · 10問 · 11ヶ月前

    Week 9 Architectures

    Week 9 Architectures

    10問 • 11ヶ月前
    ユーザ名非公開

    BigO scenario qns

    BigO scenario qns

    ユーザ名非公開 · 8問 · 9ヶ月前

    BigO scenario qns

    BigO scenario qns

    8問 • 9ヶ月前
    ユーザ名非公開

    問題一覧

  • 1

    Which of the following statements best describes a process?

    An active entity representing a program in execution.

  • 2

    The ______ section of a process's memory layout contains global and static variables.

    Data

  • 3

    The ___ section of a process’s memory layout contains temporary data storage for function calls (parameters, return addresses, local variables).

    Stack

  • 4

    All of the followings are typically stored in a Provess Control Block (PCB) except:

    CPU manufacturer’s name

  • 5

    A process that is currently waiting for an I/O operation to complete is in the ______ state.

    Waiting (Blocked)

  • 6

    What is the primary purpose of multitasking (or time-sharing) in an operating system?

    To give the illusion that multiple processes are running concurrently on a single CPU.

  • 7

    The process of saving the state of the current running process and restoring the state of another process is called:

    Context switching

  • 8

    Which OS component is responsible for selecting which process from the Ready queue should be allocated the CPU?

    Scheduler

  • 9

    Why are system calls necessary for user programs?

    To request services from the operating system kernel that require privileged access.

  • 10

    When the CPU is executing user applications and has restricted access to hardware and memory, it is operating in:

    User mode

  • 11

    A ______ is a signal that causes the CPU to suspend its current execution and transfer control to a special handler routine.

    Interrupt

  • 12

    A "trap" or "exception" (e.g., division by zero) is a type of:

    Software-generated interrupt

  • 13

    The ______ is a table of pointers that the CPU uses to find the correct handler routine when an interrupt occurs.

    Interrupt Vector (or Interrupt table)

  • 14

    In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the running state to the ________

    Ready state

  • 15

    Suppose that a process is in “Blocked” state waiting for some I/O service. When the service is completed, it goes to the __________

    Ready state

  • 16

    Which one of the following is not a condition for process state transition from running state to wait state?

    If a lower priority process arrived

  • 17

    Consider the following statements about process state transitions for a system using preemptive scheduling. I. A running process can move to ready state. Il. A ready process can move to running state. IlI. A blocked process can move to running state. IV. A blocked process can move to ready state. Which of the above statements are TRUE?

    I, II, and IV only

  • 18

    Suppose that a process is in 'BLOCKED' state waiting for some I/0 service. When the service is completed, it goes to the ____ state.

    ready

  • 19

    Process is in a ready state ____

    when process is scheduled to run after some execution

  • 20

    The maximum number of processes that can be in running state with 1 CPU and n process in a ready state for a computer system is

    1

  • 21

    look at the image to ans the qns

    2, 3 and 5

  • 22

    As process enter the system, they are put into ____ which consists of all the processes in the system.

    job queue