Professional Documents
Culture Documents
Computer Science Chapter 6 Notes
Computer Science Chapter 6 Notes
Computer Science Chapter 6 Notes
System resources
6.1.1,3,4
● primary memory
- RAM (Random-Access Memory) - memory in which each cell (byte) can be directly
accessed. Volatile.
- ROM (Read-Only Memory) - cannot be changed, placing information is called burning
(when e.g. manufactured). Stores instructions to start itself and frequently used software.
● processor speed - processor does all calculations in a computer system. Speed is a measurement of
how many calculations can be done per second (1Ghz=1 billion calculations per second)
○ Processor will take longer to perform tasks
○ Each processor has at least 1 ALU or core. If you have 2 ALUs you can do two operations
at once, etc.
○ If you have only one core, you can only perform one set of operations/calculations at a
time. If you have two or more you can do more calculation in the same time frame. It
affects how many tasks a system can cope with simultaneously.
● bandwidth - Measurement of how much data can be sent at same time in a certain time frame (also
called bitrate) (bps bits per second)
6.1.2
● mainframes - in large companies, many cores and huge memory
● servers - data centers for “cloud storage”, in PC’s
● PCs - Desktops
● sub-laptops - netbooks (before tablets)
● cell phones, PDAs (Personal Digital Assistants - listonosz podpis), digital cameras
Multi-programming system = system that can have different programs (apps) installed
Single programming system = can only run one program/set of programs
Touch Screens
- resistive - two layers - vertical and horizontal lines of electrically conductive material, small
amount of space → touch lead to contact and current flow;
- capacitive - laminate over a glass screen - strength of the electricity flow from each corner
- infrared - crisscrossing horizontal and vertical beams of infrared light over the surface of the screen
→ sensors
- surface acoustic wave (SAW) - high frequency sound waves
Embedded systems - ROM, one task only
Parallel Architectures - more processors
- Parallel Computing, SIMD (single instructions, multiple data),
synchronous processing,
- Pipeline
- Shared-memory parallel processor
Classes of Parallel Hardware
- Symmetric multiprocessors (SMPs) - multiple identical cores
Memory Management
Logical address (virtual/relative)- a reference to a stored value relative to the program making the reference
Physical address - actual address in the main memory of the device
Address binding - mapping from logical to physical address
Single Contiguous Memory Management - a program is loaded into one continuous area of
memory:
- logical address + starting address (after operating system)
- simple to implement and manage
- wastes memory space and CPU time
- application program takes the rest of memory which it might not need
Partition Memory Management: program must fit into one partition
- fixed - memory is divided into specific number of partitions into which programs
are loaded
- dynamic - memory is divided into partitions as needed to accommodate programs
base register - a register that holds the beginning address of the current partition
bounds register - a register that holds the length of the current partition
partition selection:
- First fit - first one big enough to hold it (fixed)
- Best fit - smallest partition big enough to hold it (fixed)
- Worst fit - largest partition big enough to hold it (dynamic)
Paged Memory Management - processed are divided into fixed-size pages and stored in
memory frames when loaded
- frame - a fixed-size portion of main memory that holds a process page
- page - a fixed-size portion of a process that is stored into memory frame
- page-map table (PMT) - table used by the operating system to keep track of
page/frame relationships
- logical address <page, offset> (<2, 518>)
- physical address = frame number * frame size + offset
- demand paging - extension to paged memory management in which pages are
brought into memory only when referenced (on demand)
- page swap - bringing in one page from secondary memory, possibly causing
another to be removed
- virtual memory - illusion that there is no restriction on program size because an
entire process need not be in memory at the same time
- thrashing - inefficient processing caused by constant page swapping
Process Management
Process States - conceptual stages through which a process moves as it is managed by operating system
- new state - process is being created
- ready state - no barriers to its execution, waiting for CPU
- running state - is being executed
- waiting state - waiting for resources
- terminated state - completed