chapter 5 Flashcards

1
Q

what are the key management tasks of an OS

A
  • provision of a user interface
  • provision of a software platform
  • memory management
  • file management
  • security management
  • process management
  • hardware management
  • error checking and recovery
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how does the os manage memory

A
  • allocates memory to processes and keeps track of memory locations
  • manages paging, segmentation, and virtual memory // moves data from secondary storage when needed
  • reclaims unused blocks of memory (RAM)
  • prevents two programs from occupying the same area of RAM at the same time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

a user interface allows…

A

a user to communicate with the hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

file management

A
  • creates files/folders
  • renames files
  • controls access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

security management

A
  • Creates accounts/passwords
  • Checks access rights and prevents unauthorized access
  • Provides recovery for lost data
  • Ensures data privacy
  • Provide anti-malware
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

process management

A
  • Decides which process to run next
  • Supports multitasking
  • Handles priorities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

utility software

A
  • disk formatter
  • virus checker
  • disk repair software / disk contents analysis
  • back-up software
  • disk defragmenter
  • file compression
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

virus checker

A
  • Checks for and then removes any viruses found
  • Constantly checks all incoming and outgoing files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

disk formatter

A
  • Prepare a disk for initial use
  • checks all sectors and marks bad sectors.
  • Makes existing data inaccessible
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

disk repair

A
  • To check for and fix inconsistencies on a disk
  • Checks for and marks any errors/bad sectors on the disk
  • Resolves any errors on the disk
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

back-up software

A
  • to make a copy of data at regular intervals
  • so that if it lost it can be retrieved
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

defragmentation software

A
  • Reorganizes disk contents into contiguous memory sectors
  • Improve disk access times // Data/files can be loaded faster
  • defragmentation also creates larger contiguous free space regions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

fragmentation

A

contents of file scattered across multiple sectors. fragmentation slows down computer performance and speed of file access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is a DLL?

A
  • A shared library file
  • Code is saved separately from the main .EXE files
  • Code is only loaded into main memory when required at run-time
  • The DLL file can be made available to several applications at the same time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

features of an IDE

A
  • Context sensitive prompts
  • Syntax checking
  • Pretty printing
  • Single-stepping
  • Breakpoints
  • report/watch window
  • compiler/interpreter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

context sensitive prompts

A

Displays a list of keywords or prompts that could be used

17
Q

dynamic syntax checks

A

errors are underlined by the IDE

18
Q

prettyprinting

A

involves color coordinated code, indentation, and built-in functions like def(). is used to make the groups of code more identifiable, and easier to code.

19
Q

collapsing code blocks

A

collapsing massive chunks of code

20
Q

single-stepping

A

you can execute a single node at a time, causing the program to pause after the node completes

21
Q

breakpoints

A

The breakpoint ends the program

22
Q

report window

A

shows how variables change in the program

23
Q

assembler

A

translates low-level code (assembly language) into machine code

24
Q

compiler benefits

these are also the features

A

Produces an executable file
User does not have access to source code
It will (probably) be faster to run the executable code
Code does not have to be compiled each time it is run
Does not need the compiler to be present at run-time

25
Q

compiler drawbacls

A
  • Larger amounts of source code take time to compile
  • Slower to produce the object code than an interpreter
  • Code cannot be changed without recompilation
  • The program will not run if there are errors
  • One error may result in other false errors being reported
  • Cannot test specific sections of code
26
Q

interpreter benefits

A
  • Easier de-bugging because errors can be corrected in real-time. The effect of any change made to the code can be seen immediately
  • Parts of the program can be tested, without all the program code being available.
  • Reads each line then translates it and executes it
  • Stops when an error is encountered // displays errors where it finds them
27
Q

interpreter disadvantages

A
  • has to be present during run-time
  • interpreted code runs slower than compiled code (compilers take longer to generate the code not run it) as it needs to be interpreted every time it is run
  • no .exe file produced so users have access to source code