Mapa mental
CPU Scheduling
Contenido del mapa
CPU Scheduling
Multiprocessing vs Multiprogramming
- Multiprocessing
- Management of multiple processes within a multiprocessor
- 2 or more CPUs
- Management of multiple processes within a multiprocessor
- Multiprogramming
- Management of multiple processes within a uniprocessor system
- 1 CPU
- Utilises scheduling
- Pre-emptive multitasking
- Context switching
- Schedulers
- Long-term scheduler
- Selects which process to be brought into the ready queue
- Controls 'degree of multiprogramming' (num of processes in memory)
- Short-term scheduler
- Selects which process should be executed next and allocates CPU
- Leads to dispatcher giving process control of CPU
- Dispatch latency = time taken to stop one process and run another
- Medium-term scheduler
- Swaps processes in and out of memory balancing process mix
- Scheduling Criteria
- CPU utilization
- Throughput
- Turnaround time
- Waiting time
- Response time
- Long-term scheduler
- Pre-emptive multitasking
- Management of multiple processes within a uniprocessor system
- Multiprocessing
Scheduling Algorithms
- Goals
- All Systems
- Fairness
- Balance - Keep busy
- Batch Systems
- Throughput
- Turnaround time
- CPU utilisation
- Interactive Systems
- Response time
- Proportionality
- Real-time systems
- Meeting deadlines - Avoid data loss
- Predictability
- All Systems
- Types
- First Come, First Served
- Oldest process of ready queue selected
- Favours CPU-bound processes
- Short processes may have to wait a long time
- Oldest process of ready queue selected
- Shortest Job First
- Optimal - minimum average waiting time for set of processes
- Priority Scheduling
- Priority number associated with each process
- Problem: Starvation
- Lowest priority may never execute
- Problem: Starvation
- Priority number associated with each process
- Round Robin
- Set time given
- When set time is complete, process placed at back of ready queue
- Good for short jobs, bad for long jobs
- When set time is complete, process placed at back of ready queue
- Set time given
- Mutltilevel Queue Scheduling
- Ready queue formed into multiple queues with own algorithms
- Multilevel Feedback Scheduling
- Process can move between various queues
- Configure algorithm to match a system's design
- Complex
- Process can move between various queues
- First Come, First Served
- Goals
Información
- Descripción
- Computer Science Mapa Mental sobre CPU Scheduling, creado por Alex Bernini el 06/05/2019.
- Creado por
- Alex Bernini
- Visitas
- 0
- Valoración