Term 
        
        | ______ is when you monitor a real system and record a sequence of actual events |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Kernel maintains a per-CPU _______ for all the runnable tasks |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | It is called _____ when there is no time left, it is not run-able until all other tasks use their slices |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | It is called _____ when tasks are run-able as long as there is time left in its time slice |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | In windows scheduling, if no run-able thread, then the dispatcher will execute the ________ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Multicore processor may complicate scheduling due to ________ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | The solution to processor affinity is: |  
          | 
        
        
        Definition 
        
        soft affinity hard affinity |  
          | 
        
        
         | 
        
        
        Term 
        
        | ______ is a migrating process that is expensive to invalidate and repopulate cache |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ is when each processor is self-scheduling |  
          | 
        
        
        Definition 
        
        | symmetric multiprocessing |  
          | 
        
        
         | 
        
        
        Term 
        
        | _______ is when only one processor makes scheduling decisions I/O processing, an dother system activity |  
          | 
        
        
        Definition 
        
        | asymmetric multiprocessing |  
          | 
        
        
         | 
        
        
        Term 
        
        | Since CPU scheduling is -more complex when multiple CPUs are available, we assume processors are _____________ in functionality |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ schedules threads using SCS scheduling |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ schedules threads using PCS scheduling |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _______ is the API in Pthread scheduling |  
          | 
        
        
        Definition 
        
        | ptbread_attr_set/getscope |  
          | 
        
        
         | 
        
        
        Term 
        
        | _____ is the scheduling competition within the process |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | ______ is the competition among all the threads in the system |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _______ is when each process gets a small amount of CPU time |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _______ will gradually increase the priority of processes that wait in the system for a long time |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ is a problem with priority scheduling algorithms because low priority processes may never execute |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | The preemptive version of shortest-job-first-scheduling is called: |  
          | 
        
        
        Definition 
        
        | shortest-remaining time first |  
          | 
        
        
         | 
        
        
        Term 
        
        | ______ is all other processes waiting until the running CPU-bound process is done |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | For interactive systems, minimize _____ in response time to optimize different values |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Under some circumstances, like in _______, the system optimizes _____ or _____ value |  
          | 
        
        
        Definition 
        
        real time systems minimum maximum |  
          | 
        
        
         | 
        
        
        Term 
        
        | In most cases, systems optimize ______ values |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ is the time it takes from when a request was submitted until the first response is produced |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ is the total time spent waiting in the ready queue |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ is the time to execute a particular process |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ is the number of processes that complete execution per time unit |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _____ is the percentage of CPU being busy |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | ______ is the time it takes for the dispatcher to stop one process and start another running |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | True/False The kernel is preemptive |  
          | 
        
        
        Definition 
        
        | False, the kernel is nonpremptive |  
          | 
        
        
         | 
        
        
        Term 
        
        | Another word for nonpreemptive is _______ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        CPU scheduling decisions may take place when a process: switches from running to waiting state (wait for I/O) switches from running to ready state (when an interrupt occurs) switches from waiting to ready (at completion of I/O) terminates Scheduling under condition ______ and _____ is non preemptive (non-rescheduling) |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Process execution alternates between _______ and ______ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | What is the difference between fork and clone? |  
          | 
        
        
        Definition 
        
        With clone, the call allows the child process to share parts of its execution context with the calling process.  Main use of clone is to implement threads. |  
          | 
        
        
         | 
        
        
        Term 
        
        | Process execution consists of a _____ of ________ and ______ |  
          | 
        
        
        Definition 
        
        cycle CPU execution  I/O wait |  
          | 
        
        
         | 
        
        
        Term 
        
        | Maximum CPU utilization is obtained with ________ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | CPU scheduler selects another process when current one is in _____ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | CPU scheduler selects from among the processes in _______, and allocates CPU to one of them |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | CPU scheduling decisions may take place when a process: |  
          | 
        
        
        Definition 
        
        switches from running to waiting state (wait for I/O) switches from running to ready state (when an interrupt occurs) switches from waiting to ready (at completion of I/O) terminates |  
          | 
        
        
         | 
        
        
        Term 
        
        | Once the CPU has been allocated to a process, the process keeps it until it ______ or ______ |  
          | 
        
        
        Definition 
        
        terminates switching to the waiting state |  
          | 
        
        
         | 
        
        
        Term 
        
        | Preemptive scheduling needs ______ such as a timer |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Kernel states will be inconsistent if _______ when updating shared data |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | What are the solutions for using preemption since it affects the OS kernel design? |  
          | 
        
        
        Definition 
        
        Waiting for either the system call to complete or the I/O block Disable kernel preemption when updating shared data |  
          | 
        
        
         | 
        
        
        Term 
        
        | The dispatcher module gives the control of the CPU to the process selected by the short-term scheduler by: |  
          | 
        
        
        Definition 
        
        switching context switching to user mode jumping to the proper location in the user program to restart that program |  
          | 
        
        
         | 
        
        
        Term 
        
        | Turnaround time happens from the time of _____ to the time of ______ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Generally you maximize ______ and ____, and minimize _____, _____, and _____ for optimization |  
          | 
        
        
        Definition 
        
        CPU utilization  throughput turnaround time waiting time response time |  
          | 
        
        
         | 
        
        
        Term 
        
        | The scheduling algorithms are: |  
          | 
        
        
        Definition 
        
        FCFS (First Come First Served) Scheduling SJF (Shortest Job First) Scheduling Priority Scheduling Round-robin Scheduling Multilevel queue scheduling Multilevel feedback queue scheduling |  
          | 
        
        
         | 
        
        
        Term 
        
        | True/False FCFS Scheduling is preemptive |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | How is SJF provably optimal? |  
          | 
        
        
        Definition 
        
        It gives minimum average waiting time for a set of given processes Moving a short process before a long one decreases the overall waiting time |  
          | 
        
        
         | 
        
        
        Term 
        
        | True/False SJF Scheduling is preemptive |  
          | 
        
        
        Definition 
        
        | BOTH. SJF is preemptive or nonpreemptive |  
          | 
        
        
         | 
        
        
        Term 
        
        | True/False Priority scheduling is preemptive |  
          | 
        
        
        Definition 
        
        | BOTH. Priority scheduling is preemptive or nonpreemptive |  
          | 
        
        
         | 
        
        
        Term 
        
        | What happens in Round Robin when the q, time quantum, is too large? |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | What happens in Round Robin when the q, time quantum, is too small? |  
          | 
        
        
        Definition 
        
        | Then you context switch, which is high overhead |  
          | 
        
        
         | 
        
        
        Term 
        
        | A timer interrupts every _____ to schedule the next process |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | If there are n processes, each process gets ____ of the CPU time |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | No process waits more than _____ time units |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | With multi level queue, the ready queue is partitioned into _______ |  
          | 
        
        
        Definition 
        
        separate queues Foreground (interactive) and background (batch) processes |  
          | 
        
        
         | 
        
        
        Term 
        
        | With multilevel queue, processes are _____ assigned to a given queue |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | With multilevel queue, each queue has its own ________ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Multilevel queue is ______, where schedung must be done through the queues |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | With fixed priority scheduling there is the possibility of ____ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | _______ is when each queue gets a certain amount of CPU time which it can schedule amongst its processes |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | With multilevel queues a process can _____ between various queues |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Aging is implemented when |  
          | 
        
        
        Definition 
        
        | a process can move between various queues |  
          | 
        
        
         | 
        
        
        Term 
        
        | MLFQ schedules are defined by these parameters: |  
          | 
        
        
        Definition 
        
        Minnie Pounded Ninjas Said Minature Mickey Mouse Socks number of queues scheduling algorithms for each queue method used to determine when to assign a process a higher priority method used to determine when to demote a process method used to determine which queue a process will enter when that process needs service |  
          | 
        
        
         | 
        
        
        Term 
        
        | MLFQ (Multilevel Feedback Queue) is the ______ CPU-scheduling algorithm |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | CPU scheduling is _______ when multiple CPUs are available |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Which multiple-processor scheduling is used by common operating systems? |  
          | 
        
        
        Definition 
        
        | symmetric multiprocessing |  
          | 
        
        
         | 
        
        
        Term 
        
        | Multicore processor has multiple processor cores on the _____ |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | You ______ when you access memory, a process spends a significant amount of time waiting for data to become available |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | The solution to multithreaded CPU core is to: |  
          | 
        
        
        Definition 
        
        | share the exec unit, but duplicate architecture states like registers, for each CPU thread |  
          | 
        
        
         | 
        
        
        Term 
        
        | _____ may undo good scheduling efforts in the host or guests |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | ____ schedules multiple guests onto CPUs |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
        
        | Each ____ does its own scheduling not knowing it is running on a virtual processor |  
          | 
        
        
        Definition 
         | 
        
        
         | 
        
        
        Term 
         | 
        
        
        Definition 
        
        | Trying to keep a process running on the same processor |  
          | 
        
        
         | 
        
        
        Term 
         | 
        
        
        Definition 
        
        | The OS tries to keep a process running on the same processor, no guarantees |  
          | 
        
        
         | 
        
        
        Term 
         | 
        
        
        Definition 
        
        | A process says, "I am not allowed to go to other processors" |  
          | 
        
        
         |