Operating Systems Flashcards
This module makes me want to kms :3
ALU
Arithmetic Logic Unit
IR
Instruction Register
Contains instruction of last fetched.
MAR
Memory Address Register
Contains memory address for NEXT read/write
MBR
Memory Buffer Register
Holds data temporarily during memory read/write operations.
swap file
portion of the disk used for virtual memory
Command to see size of swap partition
fdisk -l
BUS?
Transfers info between components
Name 3 buses
DATA BUS, ADDRESS BUS, CONTROL BUS
DATA BUS
Transports actual data
ADDRESS BUS
carries memory addresses
CONTROL BUS
coordinates data flow between devices
Purpose of an interrupt?
signals an event that requires immediate attention, interrupting current process.
(It improves processing efficiency)
Interrupt Handler
Program determines nature of interrupt + performs whatever actions are needed.
Process
Program in execution
PID
Process ID: unique id of a process
PPID
Parent Process ID: ID of parent process
CMD
Command used to start process
Memory Tables
Allocation of main and secondary memory to processors.
Protection attributes for access to shared memory regions.
INFO needed to manage virtual memory virtual memory.
I/O Tables
if device is available or assigned.
status of each in-progress I/O operation.
Location in main memory being used as the source or destination of each in-progress I/O Transfer.
File Tables
Existence of files.
location on secondary memory.
current status.
attributes.
Process Tables
Where process is located
attributes necessary for its management.
process ID.
process state.
location in memory.
Daemon
runs in background
automatically starts at boot
no direct user interaction
name Two daemons :3
cron
sshd
Process scheduling
way processed are assigned to processsor
Non Pre-emptive
No interrupts process will continue until completes or blocks
Pre-emptive
process can be interrupted
time-slicing
rapidly switches between task giving each task a short time to run
SPN
Shortest Process Next
shortest time get priority
NON PRE-EMPTIVE
SRT
Shortest Remaining Time
same as SPN BUT IS PRE-EMPTIVE
TT
Turnaround Time
arrival time + waiting time
NTT
Normalized Turnaround Time
TT / service time
:3
ROM
Read Only Mmemory