WorksheetsThreads, Processes, and Programs
Total questions: 8
Worksheet time: 31mins
the switching of the CPU from one process or thread to another is called
task switch
context switch
preemption
process inheritance
I will remember to calculate CPU utilization I use 1 - p^n where n is the number of processes and p is the percentage of time the processes wait
yes
no
Cooperative multitasking
the process yields the CPU voluntariuly
the process yields the CPU involuntarily
the OS makes the process to yeild
the OS requests the process yield
Preemptive multitaking
The process yields the CPU coluntarily
The OS forces the process to yield
The OS requests the process yeild
The process preempts the OS
Scheduling algorithm goals
Fairness
Process enforcement
Balance
Performance
An area of code or variables shared by threads is called
Critical region
Shared memory
Shared fabric
Scope
I will know how to do FCFS, SJN, SJN with preemption, Priority and Priority with preemption
True
False
Given 8GB of RAM, the OS taking 2GB of RAM and each user program taking 2GB we can run 3 user programs at once. With an 80% average I/O wait the CPU utilization is:
48.8%
72%
20%
25%
