Beruflich Dokumente
Kultur Dokumente
-----------------------------------------------------------------( (CH-5))------------------------------------------------------------------------------Q1/P4| Definition of multiprogramming ? Computer multiprogramming is the allocation of a computer system and its resources to more than one concurrent application, job or user. Q2/P7| What is CPU Scheduler? Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them. Q3/P7| What is nonpreemptive and preemptive? Preemptive:
1. Switches from running to waiting state 2. Switches from running to ready state 3. Switches from waiting to ready 4. Terminates
CPU utilization keep the CPU as busy as possible Throughput # of processes that complete their execution per time unit Turnaround time amount of time to execute a particular process Waiting time amount of time a process has been waiting in the ready queue Response time amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment)
Q10/P11|
At time 0
Q11/P14|
Example of SJF
Ex\Q
Priority Scheduling
--------------------------------------------------------))CH8))-----------------------------------------------------------------------------Q13/P3|
Completed
Main memory and registers are only storage CPU can access directly.
Q14/P13|
Completed
Cache sits between main memory and CPU registers
Q14/P7|
What is the problem when using addresses in programs physical addresses .give example
When instruction jump 12 will be executed it will go to location 12 in memory add belongs to program 1
Q15/P9|
Q16/P12|
Q17/P13| Explain the mapping from logical to physical adders using base and limit register ?
Q18/P14|
Q19/P18|
What is Swapping?
A process can be swapped temporarily out of memory to a backing store, and then brought back into memory for continued execution.
Q21/P24|
Definition:
First-fit: Allocate the first hole that is big enough Best-fit: Allocate the smallest hole that is big enough; must search entire list, unless ordered by size Produces the smallest leftover hole Worst-fit: Allocate the largest hole; must also search entire list Produces the largest leftover hole
Q22/P25|
Definition:
External Fragmentation total memory space exists to satisfy a request, but it is not contiguous. Internal Fragmentation allocated memory may be slightly larger than requested memory; this size difference is memory internal to a partition (allocation), but not being used