week 1 lecture Flashcards
what are the 4 fundamental tasks of a computer
Input
Process
Output
Store
what does CPU stand for
Central Processing Unit
what does the CPU do?
Performs the fetch-execute cycle
what is the fetch-execute cycle
o Fetch next program instruction from
memory
o Decode the instruction into actions
o Command the relevant part(s) of the
computer to operate to execute the
instruction
o Store the result somewhere (if necessary)
what does the CPU consist of?
Control Unit
Arithmetic Logic Unit
what does the CPU Control Unit do?
Handles the fetch-execute cycle
* Controls the other components of the computer through
signals
* Contains registers for important pieces of information like
the memory location of the next instruction
what does the CPU Arithmetic Logic Unit (ALU) do?
Digital circuits to perform arithmetic and logic
operations
* Data registers to store data being used by the current set
of instructions
What are the different CPU Registers?
o Data registers
o Program Counter
o Instruction Register
o Status Flags
o Stack Pointer
What are the types of memory?
from fast to slow:
o Registers (SRAM)
o Cache (on-chip and off-chip) (SRAM)
o Main memory (DRAM)
o Secondary storage (har
what does an operating system do?
Mediate access to CPU, Memory, I/O Devices
what is the core component of an operating system?
Kernel
Where is the kernel located?
Memory
what tasks does the OS handle
– Process management
– Memory management
– Input/output
– User interface
what are the main functions of Kernel
- Processes: Determines which processes are
allowed to use the CPU - Memory: Keep track of memory – what
memory is allocated to each process, what
memory is free - Device Drivers: Interface between hardware
(e.g disk and I/O) and processes - System Calls: Processes use system calls for communication with Kernel
how many web servers run on Linux?
nearly 2/3rds
what makes Linux different compared to other OS’s
open source
why use Linux?
-Greater Control
-Learn more about operating systems
- industry required skill
what is The Shell?
a customizable environment consisting of previously defined terms and instructions
what are the advantages of the GUI
– Less to learn and easier to
control
– Intuitive
– Visual
– Fun
– Allows for easy
multitasking
what are the advantages of the CLI?
– Control
– Speed
– Less resource intensive
– Limits wrist strain
– You learn more about the
OS through the CLI
what is a virtual machine
- Software Implementation of a Machine
– Executes Programs like a physical machine
what are Linux Distros?
Linux Distro = Kernel + Everything else
Everything else?
* GUI and/or CLI
* GNU Utilities (cp, mv, ls)
* Installation + Management tools
* GNU C/C++ Compilers
* Other Applications (File Browser, Firefox, OpenOffice)
how many root directories does Linux have?
one
where does the Absolute Path start?
Root