COMPUTER PARTS Flashcards
PERIPHERALS
- mouse
- keyboard
- webcam
- microphone
- monitor
- speakers
- projector
- printer
- USB Flash Drive
- External Hard Drive
COMMAND-LINE is
- gives more control over a computer
- allows me to navigate & run programs directly from OS
- is text-based only
- interact is keyboard only
- great for batching & automating tasks
- perfect for tasks I need to do quickly & efficiently
command-line PROMPTS
- ls
- list
- ls -1
- list + 1 level
- pwd
- where am I? i.e what directory am I in?
- cd
- change directory
- mkdir
- make directory
- rmdir
- remove directory
- clear
- clear terminal window
- nano index.html
- create an html file ie website
- cd ../
- change directory
a PROGRAM is
a set of instructions written in higher-level computer languages
BINARY is
machine code
zeros & ones
has to be loaded into the memory
a PROCESS is
a program in execution
a THREAD is
a unit of execution within a process
5 PROCESS STATES
- New: the process is being created
- Running: instructions being executed
- Waiting: waiting for an event to occur like I\O
completion, waiting for a signal to be received - Ready: the process is waiting to be assigned to a processor
- Terminated: process has finished execution
BATCH SYSTEM is
is a method of production
batch processing is where the end-user cannot interact with the process
SCHEDULER is
schedules the algorithms
scheduler PRINCIPLES
fairness efficiency throughput turnaround waiting time predictability response time
scheduler METHODS
FCFS: the task that’s created the first get’s done
SJF: algo chooses the job that requires the least time first
PS: the importance of the task governs the choice
RR:
MLQ:
MLF:
scheduler TECHNIQUES
- preemptive: CPU allocated for limited time
- non-preemptive: CPU allocated until the process terminates, so it runs uninterrupted
it’s allowed to hold the CPU until its execution is complete
the CPU will not be taken away from it until it is complete or goes into waiting state