Basics Flashcards

1
Q

What is address space?

A

The amount of memory allocated to something e.g. a program

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

Define program counter

A

The address in memory of the program instruction currently being executed

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

What are ‘registers’?

A

Fast storage available to the CPU
- instructions are ‘loaded’ into registers before execution
- separate from main memory

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

Define stack

A

An area of memory that is allocated to programs on demand
- used for a variable of a fixed size e.g. integers

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

Define heap

A

An area of memory that is allocated to programs on demand
- for variable of unknown size (complex ones)

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

What is similar about the heap and the stack? And what is different?

A

Both are an area of memory allocated to programs on demand
- stack is for variables of a fixed size, heap is for unknown size variables

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

Where do the instructions (of a program) need to be brought in order to execute the program?

A

Into the register (fast memory)

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

A process = program + ……

A

program + the state of all threads operating in the program
(a process is the program in execution)

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

What are the four main states a program can have?

A

0 - running on a processor
S - sleeping (waiting for an event to complete)
R - runnable (process is on run queue)
Z - zombie

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

What are signals?

A

A UNIX mechanism for controlling processes, it’s a message sent to the process that requires immediate attention

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

What are signals generated by?

A

Exceptions
E.g. user interrupt key, illegal instructions, child process calling exit

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

What does the command cntrl c do? What signal does it send?

A

Kills a process (interupt signal)

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

What does the command cntrl s do to a program?

A

Suspends or pauses the display of output

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