O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

CS1550 Midterm Prep

Court Kowaluk 107 perguntas

Fazer o quiz

Este quiz tem tipos de pergunta que abrem no player de sempre.

Perguntas do 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. AVerdadeiro
    2. BFalso
  2. 2Making a system call results in a voluntary transition from user mode to kernel mode.
    1. AVerdadeiro
    2. BFalso
  3. 3A zombie process switches to the terminated state immediately after being in the waiting state.
    1. AVerdadeiro
    2. BFalso
  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. AVerdadeiro
    2. BFalso
  5. 5A semaphore that is used to enforce mutual exclusion should be initialized to 0
    1. AVerdadeiro
    2. BFalso
  6. 6When the following program runs, the fork system call will be called exactly two times by
    each process.
    int main(){
    fork();
    fork();
    }
    1. AVerdadeiro
    2. BFalso
  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. AVerdadeiro
    2. BFalso
  8. 8All child processes created using fork() will eventually get adopted by the init process
    1. AVerdadeiro
    2. BFalso
  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. AVerdadeiro
    2. BFalso
  10. 10A process that has multiple threads also has multiple stacks and multiple heaps.
    1. AVerdadeiro
    2. BFalso

Informações

Descrição
Computer Science Quiz sobre CS1550 Midterm Prep, criado por Court Kowaluk em 20-02-2024.
Idioma
English
Visualizações
16
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?