GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

CS1550 Midterm Prep

Court Kowaluk 107 Fragen

Quiz starten

Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.

Fragen in diesem Quiz (107)

  1. 1A Mutex is safer to use for mutual exclusion than a counting semaphore because a Mutex can only be up()’ed by the same process that down()’ed it.
    1. ARichtig
    2. BFalsch
  2. 2Making a system call results in a voluntary transition from user mode to kernel mode.
    1. ARichtig
    2. BFalsch
  3. 3A zombie process switches to the terminated state immediately after being in the waiting state.
    1. ARichtig
    2. BFalsch
  4. 4Assuming lock is a shared integer, initialized as lock = 0;, if two processes execute the instruction TestAndSet(&lock) in parallel at the same time on two CPU cores, both processes will get the same return value from the instruction
    1. ARichtig
    2. BFalsch
  5. 5A semaphore that is used to enforce mutual exclusion should be initialized to 0
    1. ARichtig
    2. BFalsch
  6. 6When the following program runs, the fork system call will be called exactly two times by
    each process.
    int main(){
    fork();
    fork();
    }
    1. ARichtig
    2. BFalsch
  7. 7Copy-on-Write is a mechanism that avoids unnecessary memory copying when fork() is immediately followed by an exec() call by the child process.
    1. ARichtig
    2. BFalsch
  8. 8All child processes created using fork() will eventually get adopted by the init process
    1. ARichtig
    2. BFalsch
  9. 9Zombie processes may waste system resources because the operating system does not completely free up their resources until their parents wait() on them or exit().
    1. ARichtig
    2. BFalsch
  10. 10A process that has multiple threads also has multiple stacks and multiple heaps.
    1. ARichtig
    2. BFalsch

Informationen

Beschreibung
Computer Science Quiz am CS1550 Midterm Prep, erstellt von Court Kowaluk am 20/02/2024.
Sprache
English
Aufrufe
16
Schlagwörter
computer science
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck