Før Quiz - Prosesser Flashcards
Threads can share the virtual address space
True
Select the true statement:
After each interrupt, the interrupted process returns to precisely the same state it was in before the interrupt occurred.
When talking about processes, daemons are _________
processes that stay in the background to handle some activity such as email, web pages, printing, and so on.
A single-core CPU can run many processes, but at any one instant the CPU is running only one process.
True
A computer with only one CPU is seemingly running several program in parallel (e-mail, browser, word). How is this possible?
The different programs are assigned different timeslices to run, and the CPU is switching back and forth between them.
Hva er en atomic action i forbindelse med prosesser?
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.
When booting up the system on a PC, only one process is started. All other processes are started by the user afterwards.
False
Hvor mye raskere er det å opprette en ny tråd enn en prosess?
mellom 10 - 100 ganger raskere
Multiprogramming systems are systems where the CPU is rapidly switching back and forth between processes.
True
Linux has no concept of a process hierarchy
False
Multiprograming is when processes are actually running in parallel, not only pseudo-parallel where the CPU is switching back and forth between processes.
False
Is it possible that a race condition occurs when running on a CPU with only one core?
Yes
A process is an instance of an executing program.
True
Hva er den beste beskrivelsen av en ‘race condition’?
To eller flere tråder som kjemper om en ressurs og utfallet avhenger av synkroniseringen av trådene.
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.
True
In which of the following situations can a race condition occur?
When two or more processes are simultaneously trying to queue a file for printing in the same printer queue.
How many processes can be in running-state at the same time on a single-core CPU?
One
If we are comparing the computer with baking a cake, which of the items belong together?
- Recipe = Program
- Person baking the cake = Processor CPU
- Cake ingredients = Input Data
- Activity consisting of the baker reading the recipe, fetching the ingredients and baking the cake = Process
Context Switching between processes is faster than Context Switching between threads.
False
Which states can a process have?
Ready, running, blocked
Hva er forskjellen på en prosess og en tråd?
Tråder er tilhørende en prosess og deler denne prosessens adresseområde mellom seg.
I hvilket tilfelle er det nyttig med tråder?
Når en prosess har flere oppgaver som kan utføres uavhengig av hverandre.
A process can only have one thread
False
Which definition is correct about multiprocessor systems?
Multiprocessor systems have two or more CPUs sharing the same physical memory.