1.2 Software extra Flashcards
flooExplain why a real-time operating system would be suitable for intensive care units
If something happens to patient, response must be immediate and other systems may have delays which could result in patient not receiving treatment in time
Why may fcfs be inefficient
Once a job starts it prevents others from being processed so a job using a slow resource like a printer will waste processor time
Why is scheduling necessary
Process as many jobs as possible…
…in least possible time
Ensure all jobs are processed (fairly)
Efficient use of resources / processor time
Why is memory management necessary
Allows programs to share memory /
allocate memory…
…& protect programs / data from each
other
Allows programs larger than main memory
to run
How does memory management do it
Converting logical addresses to physical addresses
What are pages used for
Virtual memory
Important statement for paging
PHYSICAL DIVISIONS
Important statement for segmentation
LOGICAL DIVISIONS
Similarities between paging and segmentation
Use virtual memory / backing store to
swap parts of programs
Allow programs larger than memory to
run / insufficient memory
What do both paging and segmentation allow
Allows programs to be stored in
memory non contiguously
Why do linkers need to be used after compilation
The user running the program will not
necessarily have the library installed on
their machine (1) therefore the relevant
code needs to be included within the
final executable (1) – it is the job of the
linker to combine this code (1)
Other benefits of using library routines
Ready to use, and programmer expertise
What are statements checked against in syntax analysis
The rules/grammar of the language
Extra things for syntax analysis
Errors reported as a list, error diagnostics given and receives output from lexical analysis and passed code to code generation
Can libraries be written in different language
Yes so this is advantage
Why is waterfall better for project with static requirements
Requirements clearly layer out from start so can be focused on
Waterfall for big or small projects?
Big
How could black box testing be used on a piece of code
Tests the expected output… [1]
…based on input [1]
Does not look at the code // looks only
at program specification [1]
What is alpha testing
Testing done by the programmer
How will white box testing be done on a peice of code
Using the source code
Check every possible path / condition
statements
Dry Runs / Trace Tables
Describe RAD
Prototype is created (1)
– (Evaluated and) feedback used to
inform next iteration (1)
– Any changes are made (1)
– Process repeated until…(1)
…prototype becomes final
product. (1)
What is instantiation
Classes provide blueprints for creating objects, a process known as instantiation.