Finals Flashcards

(29 cards)

1
Q

Contains two or more parts that can run concurrently

A

Multithreaded Program

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

The smallest unit of execution

A

Thread

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

Group of associated threads executed in the same shared environment

A

Process

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

Contains exactly one thread

A

Single-Threaded Process

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

Supports more than one thread.

A

Multi-Threaded Process

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

Threads in the same process share the same memory space and can communicate directly with one another.

A

Shared Environment

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

Property of executing multiple threads and processes simultaneously

A

Concurrency

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

Determines which threads should be currently executing.

A

Thread Scheduler

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

Process of storing a thread’s current state and later restoring the state of the thread to continue execution.

A

Context Switch

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

Special thread that is created by the Java VM to run the application.

A

Main Thread

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

What are the two ways to create a thread?

A

*Extend the Thread class and override the run () method
*Implement the Runnable interface

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

Starts a thread by calling its run method

A

Start()

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

The entry point for the thread

A

Run()

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

Sets a thread’s name

A

setname()

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

Obtains a thread’s name

A

getName()

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

Sets a thread’s priority

A

setPriority()

17
Q

Obtains a thread’s priority

A

getPriority()

18
Q

Determines if a thread is still running

19
Q

Waits for a thread to terminate

20
Q

Suspends a thread for a period of time

21
Q

numeric value associated with a thread that is taken into consideration by the thread scheduler

A

Thread Priority

22
Q

Value of:
MIN_PRIORITY
MAX_PRIORITY
NORM_PRIORITY

23
Q

Returns a reference to the Thread instance executing currentThread()

A

Thread.currentThread()

24
Q

Associate one or more non-specified Java types upon creation. These are declared within angle brackets (<>).

A

Generic types

25
What are the most commonly used parameter names
E – Element K – Key N – Number T – Type, V – Value.
26
Represents an unknown type and is specified by the question mark. Allow greater control of the types you use.
Wildcard arguments
27
Symbol that denotes an unbounded wildcard
28
Restricts the unknown type to be a specific type or a subtype of that type.
Upper-Bounded Wildcard
29
Restricts the unknown type to be a specific type or a super type of that type
Lower-Bounded Wildcard