Week 2 Concurrency

Week 2 Concurrency
10問 • 11ヶ月前
  • ユーザ名非公開
  • 通報

    問題一覧

  • 1

    In computer science, a system where two or more computations are executing "at the same time" (literally or effectively) is called a:

    Concurrent system

  • 2

    What is the primary difference sometimes reserved for "parallel systems" compared to "concurrent systems"?

    Parallel systems involve computations literally proceeding at the same time, often on different cores.

  • 3

    In POSIX Threads (Pthreads), the function typically called by a parent thread to create a new thread is

    pthread_create

  • 4

    The ______ method in Java is used to start the execution of a newly created thread.

    start()

  • 5

    In a multi-threaded process, all threads share the same program counter and stack.

    False

  • 6

    The number of possible execution orders in a concurrent program grows exponentially with program size.

    True

  • 7

    Making sure threads never have any variables in common is always the most practical solution to avoid race conditions in complex operating system components or multi-threaded server programs.

    False

  • 8

    Which of the following statements accurately describe a concurrent system? (Select all that apply)

    Two or more computations are executing, literally or effectively, "at the same time.", It can involve multiple threads sharing the same core by multitasking.

  • 9

    What is a "thread" in the context of operating systems? (Select all that apply)

    A specific sequence of instructions defined by some program or section of a program., Instruction sequences from one thread may run in parallel or be interleaved unpredictably with sequences from other threads., Every process has at least one thread.

  • 10

    When discussing "non-determinism" in concurrent programs, which of the following are true? (Select all that apply)

    Even simple concurrent programs can have many possible orders of execution., Different orders of execution may lead to different outcomes.

  • 1.1: Software life cycle

    1.1: Software life cycle

    ユーザ名非公開 · 17問 · 2年前

    1.1: Software life cycle

    1.1: Software life cycle

    17問 • 2年前
    ユーザ名非公開

    Intro to computing - Lecture 1

    Intro to computing - Lecture 1

    ユーザ名非公開 · 32問 · 2年前

    Intro to computing - Lecture 1

    Intro to computing - Lecture 1

    32問 • 2年前
    ユーザ名非公開

    Intro to Comp - Lecture 4

    Intro to Comp - Lecture 4

    ユーザ名非公開 · 34問 · 2年前

    Intro to Comp - Lecture 4

    Intro to Comp - Lecture 4

    34問 • 2年前
    ユーザ名非公開

    Chapter 5

    Chapter 5

    ユーザ名非公開 · 7問 · 2年前

    Chapter 5

    Chapter 5

    7問 • 2年前
    ユーザ名非公開

    Intro to comp - Lecture 3

    Intro to comp - Lecture 3

    ユーザ名非公開 · 24問 · 2年前

    Intro to comp - Lecture 3

    Intro to comp - Lecture 3

    24問 • 2年前
    ユーザ名非公開

    Intro to Comp - Lecture 2

    Intro to Comp - Lecture 2

    ユーザ名非公開 · 28問 · 2年前

    Intro to Comp - Lecture 2

    Intro to Comp - Lecture 2

    28問 • 2年前
    ユーザ名非公開

    Quiz 2

    Quiz 2

    ユーザ名非公開 · 7問 · 2年前

    Quiz 2

    Quiz 2

    7問 • 2年前
    ユーザ名非公開

    1.2: Software Engineering Methodologies

    1.2: Software Engineering Methodologies

    ユーザ名非公開 · 20問 · 2年前

    1.2: Software Engineering Methodologies

    1.2: Software Engineering Methodologies

    20問 • 2年前
    ユーザ名非公開

    2.2: Relational Model and ER Model

    2.2: Relational Model and ER Model

    ユーザ名非公開 · 19問 · 2年前

    2.2: Relational Model and ER Model

    2.2: Relational Model and ER Model

    19問 • 2年前
    ユーザ名非公開

    2.3: Converting ER Model to Relational model

    2.3: Converting ER Model to Relational model

    ユーザ名非公開 · 5問 · 2年前

    2.3: Converting ER Model to Relational model

    2.3: Converting ER Model to Relational model

    5問 • 2年前
    ユーザ名非公開

    Quiz 1

    Quiz 1

    ユーザ名非公開 · 8問 · 2年前

    Quiz 1

    Quiz 1

    8問 • 2年前
    ユーザ名非公開

    Week 3 Mutual Exclusion

    Week 3 Mutual Exclusion

    ユーザ名非公開 · 3回閲覧 · 12問 · 11ヶ月前

    Week 3 Mutual Exclusion

    Week 3 Mutual Exclusion

    3回閲覧 • 12問 • 11ヶ月前
    ユーザ名非公開

    Week 4 Synchronisation

    Week 4 Synchronisation

    ユーザ名非公開 · 10問 · 11ヶ月前

    Week 4 Synchronisation

    Week 4 Synchronisation

    10問 • 11ヶ月前
    ユーザ名非公開

    Week 5 Processes and scheduling

    Week 5 Processes and scheduling

    ユーザ名非公開 · 22問 · 11ヶ月前

    Week 5 Processes and scheduling

    Week 5 Processes and scheduling

    22問 • 11ヶ月前
    ユーザ名非公開

    Week 6 Interprocess Communication

    Week 6 Interprocess Communication

    ユーザ名非公開 · 22問 · 11ヶ月前

    Week 6 Interprocess Communication

    Week 6 Interprocess Communication

    22問 • 11ヶ月前
    ユーザ名非公開

    Week 7 File system

    Week 7 File system

    ユーザ名非公開 · 13問 · 11ヶ月前

    Week 7 File system

    Week 7 File system

    13問 • 11ヶ月前
    ユーザ名非公開

    Week 8 Virtual Memory

    Week 8 Virtual Memory

    ユーザ名非公開 · 22問 · 11ヶ月前

    Week 8 Virtual Memory

    Week 8 Virtual Memory

    22問 • 11ヶ月前
    ユーザ名非公開

    Week 9 Architectures

    Week 9 Architectures

    ユーザ名非公開 · 10問 · 11ヶ月前

    Week 9 Architectures

    Week 9 Architectures

    10問 • 11ヶ月前
    ユーザ名非公開

    BigO scenario qns

    BigO scenario qns

    ユーザ名非公開 · 8問 · 9ヶ月前

    BigO scenario qns

    BigO scenario qns

    8問 • 9ヶ月前
    ユーザ名非公開

    問題一覧

  • 1

    In computer science, a system where two or more computations are executing "at the same time" (literally or effectively) is called a:

    Concurrent system

  • 2

    What is the primary difference sometimes reserved for "parallel systems" compared to "concurrent systems"?

    Parallel systems involve computations literally proceeding at the same time, often on different cores.

  • 3

    In POSIX Threads (Pthreads), the function typically called by a parent thread to create a new thread is

    pthread_create

  • 4

    The ______ method in Java is used to start the execution of a newly created thread.

    start()

  • 5

    In a multi-threaded process, all threads share the same program counter and stack.

    False

  • 6

    The number of possible execution orders in a concurrent program grows exponentially with program size.

    True

  • 7

    Making sure threads never have any variables in common is always the most practical solution to avoid race conditions in complex operating system components or multi-threaded server programs.

    False

  • 8

    Which of the following statements accurately describe a concurrent system? (Select all that apply)

    Two or more computations are executing, literally or effectively, "at the same time.", It can involve multiple threads sharing the same core by multitasking.

  • 9

    What is a "thread" in the context of operating systems? (Select all that apply)

    A specific sequence of instructions defined by some program or section of a program., Instruction sequences from one thread may run in parallel or be interleaved unpredictably with sequences from other threads., Every process has at least one thread.

  • 10

    When discussing "non-determinism" in concurrent programs, which of the following are true? (Select all that apply)

    Even simple concurrent programs can have many possible orders of execution., Different orders of execution may lead to different outcomes.