Chapter 20: System Software Flashcards

1
Q

List strategies to manage the main program.

A
  1. Partitioning
  2. Paging / Virtual Memory
  3. Segmentation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe the process of Partitioning.

A
  1. The memory is divided into partitions, and one or more programs are loaded in each partition.
  2. These partitions can either be of a fixed size or dynamic.
  3. Each partition can be used for different types of jobs.
  4. These programs are scheduled when the partition has the space for the whole program.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe the process of Paging/ Virtual Memory.

A
  1. The program is divided into a number of pages of the same size.
  2. Not all of the pages needs to be initially loaded, and they are swapped in or out of the memory as needed.
  3. A paging table is used to schedule.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe the process of Segmentation.

A
  1. The programmer divides the programs into segments.
  2. These segments can be of varying size.
  3. Segments are loaded as and when required during execution.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain what happens during the lexical analysis. (5 Points)

A
  1. Whitespace and comment statements are removed.
  2. Obvious errors are checked.
  3. All langugae keyboards are replaced with their tokens, using the keyword table.
    4.Identifier names are placed in the symbol table.
  4. The identiifer is searhced for in the symbol table, and the name is replaced by a pointer value in the source code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain the need for intermediate code and its purpose in a virtual machine. (8 marks)

A
  1. Intermediate code is a simplified version of code, produced by a compiler, and considered to be between high level and machine code.
  2. Intermediate code is needed because it allows portability between machines and can be allow different sections of the code to be in different languages and by different programmers. This is suitable for specific tasks and is considered to be essentially error free.
  3. This is exactly why it can be used in a virtual machine, which is an emulation of software used to implement a hardware set up, it can be consideres to be a theoretical computer.
  4. This provides an environment for the intermediate code, where a translator is available that can convert code from one language to another and can convert source code to object code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly