1. Which of the following information are normally not included in a process control block?

    • CPU scheduling information
    • I/O device queues
    • Memory management information
    • Process identifier
  2. What information would be saved in a process control block?

    • Process state
    • CPU registers
    • Timer
    • Number of threads
  3. Which schedulers can be used to control the degree of multiprogramming?

    • Job scheduler
    • CPU scheduler
    • medium-term scheduler
    • disk scheduler
  4. Which of the following cases could force a process removed from the CPU?

    • I/O request
    • fork a child
    • interrupt or time slice expired
    • all of the above
  5. The bigger time quantum, the less average turnaround time.

  6. Which of the following is preemptive?

    • rate-monotonic scheduling
    • earliest-deadline-first scheduling
    • both of the above
    • none of the above
  7. If a process is terminated with some exit value in the Unix operating system, which system call in the parent process can be used to obtain the value?

    • wait()
    • exit()
    • fork()
    • exec()
  8. Which of the following are true?

    • A multithreaded process has a program counter, pointing to the next instruction to execute for all threads
    • The short-term scheduler controls the degree of multiprogramming
    • In UNIX, the exec() system call is used to create a new process
    • Blocking os considered synchronous. Non-blocking is considered asynchronous
    • A ready process cannot do I/O or annything else that might block it.
  9. Which scheduling criteria can be used to compare CPU-scheduling algorithms?

    • waiting time
    • turnaround time
    • I/O access time
    • response time
    • context-switch time
  10. Which statement(s) is(are) true about CPU scheduling?

  • The shortest-remaining-time process will wait for the CPU resource.
  • processes in the waiting status will wait for the CPU resource.
  • The shortest-job-first algorithm can be implemented for the short-term CPU scheduling.
  • The scheduling is preemptive if the CPU-scheduling decisions tale place during the process switches from the running state to the ready state.
  1. Some algorithms of CPU scheduling algorithms are subsets of the others if they are process parameterized. What relationship of the following is incorrect? (SJF: Shortest Job First . FCFS: first come first serve, RR: round robin, MFQ multilevel Feedback queues)
  • SJF ∈\in priority
  • FCFS ∈\in priority
  • FCFS ∈\in RR
  • RR ∈\in MFQ
  • SJF ∈\in RR
  1. Which of the following CPU scheduling algorithms could result in starvation?
  • First-come. first-served
  • Shortest job first
  • Round robin
  • Priority
  1. Which one of the following statements about CPU scheduling is correct?

    • A set of processes scheduled have a shorter average turnaround time under RR (Round-Robin) than under FCFS (First-Come First Serve)
    • Interactive processes should be assigned to lower priorities because their CPU bursts are short.
    • Processes have better response when they are scheduled by RR with a large time quantum.
    • Processes scheduled by FCFS suffer the convoy effect and thus the I/O utilization will be low.
    • Processes must be migrated among CPUs very frequently for load balancing.
  2. Which of the following is true of cooperative scheduling?

    • It requires a timer
    • A process kecps the CPU until it releases the CPU either by terminating or by switching to the waiting state.
    • It incurs a cost associated with access to shared data.
    • A process switches from the running state to the ready state when an interrupt occurs.
  3. Which of the following components of program stat are shared across threads in a multithreaded process?

    • Register values
    • Heap memory
    • Global variables
    • Stack memory
  4. Which scheduling algorithm is most appropriate for a time-shared system?

    • FCS
    • SIF
    • SRTF
    • RR
  5. On UNIX, which system call is used to replace the process’s memory space with a new program?

    • created
    • fork
    • exec()
    • open
  6. In Solaris 2. an intermediate level of threads called light weight process (WP between the user threads and the kernel threads is created for the user thread library to multiplex user threads of a process onto a pool of LWPs of the process Which statement is incorrect?

    • Scheduling and context switching between user threads is done by the thread library without kernel intervention
    • Each LWP is connected to exactly one kernel thread
    • The kernel schedules only kernel threads
    • Each LWP has a register set for the user thread it is running
    • User threads and LWPs are user space data structures, while Kernel threads are kernel space resources
  7. Which item(s) is(are) shared by threads of a multi-threaded process?

  • static local variables
  • program text/executable binaries
  • register values of the CPU
  • heap memory
  1. Which threading model is supported by the Linux operating system?
  • one-to-many
  • many-to-one
  • one-to-one
  • many-to-many
  • none of the above
  1. Which of the following would be an acceptable signal handling scheme for a multithreaded program?
  • Deliver the signal to the thread to which the signal applies.
  • Deliver the signal to every thread in the process.
  • Deliver the signal to only certain threads in the process.
  • All of the above.
  1. Which of the following statcment is false?

    • the Green thread is a Many-to-One threading model
    • The threading model of Linux and Windows are typically Many-to-One
    • Although Many-to-Many threading model is the most flexible, it is too hard to implement in practice
    • Implicit threading is a kind of Many-to- Many threading model
  2. In multithreaded programs, the kernel informs an application about certain events using a procedure known as a(n) ___?

    • signal
    • upcall
    • event handler
    • pool
  3. Which of the following is true?

    • cooperative scheduling can result in race condition
    • under preemptive scheduling, the process kceps the CPU until it relcases it proactively
    • Most modem OS are now full cooperative when running in kernel mode
    • the code sections affected by the interrupts must be guarded and prevent from concurrent accesses
  4. Choose the correct statements from the multiple choices regarding processor affinity

    • Linux supports hard affinity only.
    • Load balancing often counteracts the benefits of processor affinity.
    • The main-memory architecture of a system can affect processor affinity.
    • Soft affinity means that the process may require software that is available at only a particular site.
    • None of the above
更新於