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