Computer science

0.0(0)
Studied by 3 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

flashcard set

Earn XP

Description and Tags

Last updated 9:26 AM on 10/18/22
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

12 Terms

1
New cards
What is Paging
Memory split into equal-sized sections known as pages.
They're swapped between main memory and the hard disk as needed.
2
New cards
What is Segmentation
Memory split into logical sized divisions, called segments.
● They vary in size as they are split logically
3
New cards
What does an OS do?
○ Memory management
○ Resource management eg. scheduling
○ File management
○ Input/ Output management
○ Interrupt management
○ Utility software
○ Security
○ User interface
4
New cards
Stages of Compilation
Lexical Analysis
Syntax analysis
Code generation
Optimization
5
New cards
Steps of Lexical Analysis
White space and comments are removed
Keywords and Names of variables are replaced with tokens and are stored in a symbol table
6
New cards
Steps of syntax analysis
Tokens are analysed for errors (flagged as errors)
Semantic analysis: logic mistakes in program are detected
Abstract syntax tree is produced
7
New cards
Code Generation
Abstract syntax tree is used to produce machine code
8
New cards
Optimisation
Make code more efficient
Redundant parts of coded removed
Repeated sections of code code are replaced with more efficient code
9
New cards
First come first serve
Exectuted in order they arrive
10
New cards
Round Robin
Given a fixed quantum to complete task and if not completed returned to back of queue
11
New cards
Shortest remaining
Queue sorted by shortest completion time - processes that arrive that have a shorter processing time than current running one is swapped
12
New cards
Shortest Job First
Sorted by estimated completion time