Quiz 1 - Processes & Threads

13 Questions | Total Attempts: 370

SettingsSettingsSettings
Please wait...
Quiz 1 - Processes & Threads

.


Questions and Answers
  • 1. 
    The difference between a program and a process is that a program is an active entity while a process is a passive entity.
    • A. 

      True

    • B. 

      False

  • 2. 
    The single benefit of a thread pool is to control the number of threads.
    • A. 

      True

    • B. 

      False

  • 3. 
    When a child process is created, which of the following is a possibility in terms of the execution or address space of the child process?
    • A. 

      The child process has a new program loaded into it

    • B. 

      The child process runs concurrently with the parent.

    • C. 

      The child is a duplicate of the parent.

    • D. 

      All of the above

  • 4. 
    A process control block ____.
    • A. 

      Is an example of a process queue

    • B. 

      Determines which process is to be executed next

    • C. 

      Includes information on the process's state

    • D. 

      Stores the address of the next instruction to be processed by a different process

  • 5. 
    A ____ provides an API for creating and managing threads
    • A. 

      Set of system calls

    • B. 

      Thread library

    • C. 

      Multithreading model

    • D. 

      Multicore system

  • 6. 
    A _____ uses an existing thread — rather than creating a new one — to complete a task.
    • A. 

      Asynchronous procedure call

    • B. 

      Lightweight process

    • C. 

      Thread pool

    • D. 

      Scheduler activation

  • 7. 
    A thread is composed of a thread ID, program counter, register set, and heap.
    • A. 

      True

    • B. 

      False

  • 8. 
    The ____ multithreading model multiplexes many user-level threads to a smaller or equal number of kernel threads.
    • A. 

      One-to-one model

    • B. 

      Many-to-many model

    • C. 

      Many-to-one model

    • D. 

      Many-to-some model

  • 9. 
    It is possible to have concurrency without parallelism.
    • A. 

      True

    • B. 

      False

  • 10. 
    Virtually all contemporary operating systems support kernel threads.
    • A. 

      True

    • B. 

      False

  • 11. 
    A _________________ saves the state of the currently running process and restores the state of the next process to run.
    • A. 

      None of the above

    • B. 

      Save-and-restore

    • C. 

      Context switch

    • D. 

      State switch

  • 12. 
    A process that has terminated, but whose parent has not yet called wait(), is known as a ________ process.
    • A. 

      Terminated

    • B. 

      Orphan

    • C. 

      Zombie

    • D. 

      Init

  • 13. 
    For a single-processor system, there will never be more than one process in the Running state.
    • A. 

      True

    • B. 

      False

Back to Top Back to top