Operating systems Flashcards
Internal Fragmentation
Little time slots remaining when you insert process into time slot, SOLUTION to it is Compaction(but it’s unfeasable since it takes a while)
Remember SJF
if time remaining == burst time of new process, keep current process
Remember Round Robin
It gets added onto the end, remember that if only one process remains keep adding lines to gnatt chart since it’s still preempted
Turnaround Time and Waiting time
TA = CT - AT
Waiting = TA - BT
Multilevel queue
classifies processes and gives priorities based on tht (ex: foreground > background priority), Partitions into a number of ready queues, Processes permanently assigned to one queue.
Multillevel feedback queues
Processes can move between queues(unlike multilevel queues) Separates processes according to their CPU bursts too much CPU time for a process should move it to a lower priority queue
Starvation
indefinite b locking of process, applies to priority.
Remember Context switching
Takes time too
Multiprocessor
Share load of procsses,
Symmetric Multiprocessing
each processor is self scheduling, can have common ready queue for processors or multiple ready queues for each processor.
Problems: must ensure processors dont choose same processses, and that they aren’t lost from the queue.
asymmetric multiprocessing
one processor handles all scheduling decisions, I/O processing and other activities, while other processors handle only user code.
Processors & registers
contain registers, have access to main memory on-line memory, RAM. CPU registers use clock cycles, main memory depends on rate of memory bus.
Cache
Fast memory buffer, recently used data, checked there first, if not brought in from main.
Important process
Hard Disk -> Main Memory -> Cache -> CPU registers
Fixed-Size partitioning
allocating memory in multiprogramming system in fixed sized units. Only one process per partition. fixed upper bound