1 - Computer Architecture
1 - Computer Architecture
1. Processors
*So, it's Intel and AMD that created a chip with a certain set of instructions,
these days it's the X86 or X64 set of instructions, and then you write your
operating system to work with those and use those instructions.
------------------
2. Central Processing Unit (CPU)
● Registers
● Arithmetic logic unit (ALU)
● Control unit
- ALU: An Execution of the instructions is done by the arithmetic logic unit (ALU),
and the ALU performs mathematical functions and logical operations on data, and
The ALU can be thought of as the brain of the CPU and the CPU as the brain of the
computer
- Control Unit:
- Buses:
• Registers
• Cache
• RAM
• ROM
• Virtual
Virtual Memory:
*What they're referring to is storing stuff in some kind of page file or swap
space.
And in a virtual memory-addressed system, we're not actually storing stuff in
physical memory addresses, the operating system and the programs are seeing these
virtual addresses that are part of the operating system, it's called the memory
manager, and it's the go-between between the physical, actual address spaces
and these virtual addresses that we are actually using in our programs.
And because of this addressing system, we can pretend that we have more
RAM on the system than we actually do, and we store some of the extra stuff
that doesn't fit in RAM on some swap space or some page file that lives
on the hard drive.
*And the memory manager component of the operating system, or any modern operating
system will have a memory manager or a memory mapper system, is the guy between
the actual applications and other parts of the operating system and physical RAM,
and it's putting stuff in what's called a page table that maps this program's
slot number two, or RAM space number two, is really in this physical address
space XF8245 or whatever it is in hex. So, that's virtual memory
- The faster RAM the closer it's running to the actual CPU speed and more
expensive.
---------------
3. Device Driver
-----------------
4. Process
- Interrupts:
• Each process is assigned an interrupt, which has a
riority condition
• Process can only interact with the CPU when its interrupt
is "called"
-----------------------
#System Functionality (Exam)
- Multithreading
• The application can process several pieces of code (threads) at one time
- Multitasking
• The operating system can process several programs (processes) at one time
- Multiprocessing
• System with more than one CPU (symmetric or asymmetric system)
------------------
#Virtual Machines