Additional Definition of Terms Flashcards

1
Q
  • Stack points to the thread’s stack in the process. The stack contains the local variables under the thread’s scope.
  • Each worker thread in a fork-join pool maintains its own “double-ended queue” also called a deque.
  • Other implementations of Executor Service execute runnable and callable.
  • In Python, the threading module provides a very simple and intuitive API for spawning multiple threads in a program.
  • Tasks are stolen in FIFO order since an older stolen task may provide a larger unit of work.
  • UniqueID, TID, Thread, Identifier is assigned to every new thread
  • Program Counter is a register that stores the address of the instruction currently being executed by thread.
  • The Game of Life was created with Biology in mind but has been applied in various fields such as Graphics, terrain generation, etc.
  • The output for the sequential stream is predictable. The list elements will always be printed in an ordered sequence.
  • A future is used as a reference to the result of an asynchronous computation.
  • A worker thread processes its deque in LIFO order by popping (sub)-a task from its deque.
  • Thread State can be running, ready, waiting, starting, or done
  • Parallel streams make use of the fork-join framework and its common pool of worker threads.
  • Multithreading is useful for IO-bound processes, such as reading files from a network or database since each thread can run the IO-bound process concurrently.
  • In fine-grained parallelism, a program is broken down into a large number of small tasks. These tasks are assigned individually to many processors.
  • Multiprocessing is useful for CPU-bound processes, such as computationally heavy tasks since it will benefit from having multiple processors; similar to how multicore computers work faster than computers with a single-core
A

Noted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

_ points to the thread’s stack in the process. It contains the _ under the thread’s _.

A

Stack, local variables, scope

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Stack points to the thread’s stack in the _.

A

process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

_ points to the thread’s stack in the process.

A

Stack pointer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Each _ in a fork-join pool maintains its own double-ended queue.

A

worker thread

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Each worker thread in a fork-join pool maintains its own _ also called a _.

A

double-ended queue, deque

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Other implementations of _ execute runnable and callable.

A

Executor Service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In _, the _ module provides a very simple and intuitive API for spawning multiple _ in a program.

A

Python, threading, threads

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Tasks are stolen in _ order since an _ stolen task may provide a larger unit of work.

A

FIFO, older

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

UniqueID, TID, Thread, Identifier is assigned to every new thread.

A

Noted?

The components of Thread Control Block (TCB) have been defined as:
* Thread ID
* Thread state
* CPU information :
— Program counter
— Register contents
* Thread priority
* Pointer to process that created this thread
* Pointer(s) to other thread(s) that were created by this thread

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

_ is assigned to every new thread.

A

Thread Identifier (TID)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

_ is a register that stores the address of the instruction currently being executed by thread.

A

Program Counter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The Game of Life was created with _ in mind but has been applied in various fields such as _, _, etc.

A

Biology,
graphics, terrain generation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The Game of Life is a cellular _ that is played on a _ square grid.

A

automaton, 2D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The output for the _ stream is predictable. The list elements will always be printed in an _ sequence.

A

sequential, ordered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A _ is used as a reference to the result of an _ computation.

A

future, asynchronous

17
Q

A worker thread processes its deque in _ order by _ a (sub)- task from its deque.

A

LIFO, popping

18
Q

_ can be running, ready, waiting, starting, or done.

A

Thread State

19
Q

Thread State can be _, _, _, _, or _.

A

running, ready, waiting, starting, done

20
Q

_ make use of the fork-join framework and its common pool of worker threads.

A

Parallel streams

21
Q

_ is useful for IO-bound processes, such as reading files from a network or database since each thread can run the IO-bound process concurrently.

A

Multithreading

22
Q

In _, a program is broken down into a large number of small tasks. These tasks are assigned individually to many processors.

A

fine-grained parallelism

23
Q

_ is useful for CPU-bound processes, such as computationally heavy tasks since it will benefit from having multiple processors; similar to how multicore computers work faster than computers with a single-core.

A

Multiprocessing