Før Quiz - Prosesser Flashcards

1
Q

Threads can share the virtual address space

A

True

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

Select the true statement:

A

After each interrupt, the interrupted process returns to precisely the same state it was in before the interrupt occurred.

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

When talking about processes, daemons are _________

A

processes that stay in the background to handle some activity such as email, web pages, printing, and so on.

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

A single-core CPU can run many processes, but at any one instant the CPU is running only one process.

A

True

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

A computer with only one CPU is seemingly running several program in parallel (e-mail, browser, word). How is this possible?

A

The different programs are assigned different timeslices to run, and the CPU is switching back and forth between them.

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

Hva er en atomic action i forbindelse med prosesser?

A

Det er den minste handlingen som kan utføres av prosessoren. Enten er den helt utført eller ikke påbegynt i det hele tatt.

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

When booting up the system on a PC, only one process is started. All other processes are started by the user afterwards.

A

False

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

Hvor mye raskere er det å opprette en ny tråd enn en prosess?

A

mellom 10 - 100 ganger raskere

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

Multiprogramming systems are systems where the CPU is rapidly switching back and forth between processes.

A

True

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

Linux has no concept of a process hierarchy

A

False

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

Multiprograming is when processes are actually running in parallel, not only pseudo-parallel where the CPU is switching back and forth between processes.

A

False

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

Is it possible that a race condition occurs when running on a CPU with only one core?

A

Yes

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

A process is an instance of an executing program.

A

True

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

Hva er den beste beskrivelsen av en ‘race condition’?

A

To eller flere tråder som kjemper om en ressurs og utfallet avhenger av synkroniseringen av trådene.

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

There is only one physical program counter register in the CPU. When a process is running, the program counter belonging to that process is loaded into this register.

A

True

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

In which of the following situations can a race condition occur?

A

When two or more processes are simultaneously trying to queue a file for printing in the same printer queue.

17
Q

How many processes can be in running-state at the same time on a single-core CPU?

A

One

18
Q

If we are comparing the computer with baking a cake, which of the items belong together?

A
  1. Recipe = Program
  2. Person baking the cake = Processor CPU
  3. Cake ingredients = Input Data
  4. Activity consisting of the baker reading the recipe, fetching the ingredients and baking the cake = Process
19
Q

Context Switching between processes is faster than Context Switching between threads.

A

False

20
Q

Which states can a process have?

A

Ready, running, blocked

21
Q

Hva er forskjellen på en prosess og en tråd?

A

Tråder er tilhørende en prosess og deler denne prosessens adresseområde mellom seg.

22
Q

I hvilket tilfelle er det nyttig med tråder?

A

Når en prosess har flere oppgaver som kan utføres uavhengig av hverandre.

23
Q

A process can only have one thread

A

False

24
Q

Which definition is correct about multiprocessor systems?

A

Multiprocessor systems have two or more CPUs sharing the same physical memory.

25
Q

Hva er forskjellen på en compute-bound prosess og en I/O-bound prosess?

A

En I/O-bound prosess bruker mesteparten av tiden sin på å vente på ekstern informasjon mens en compute-bound prosess kun er begrenset av prosessoren sin hastighet.

26
Q

A process can never ask the OS to kill/terminate another process.

A

False

27
Q

When a process is waiting for input from the keyboard before it can continue, it is in the _______ state

A

blocked