Ch 1 Flashcards

0
Q

Chain of responsibility

A

Avoid coupling a sender of a request to a receiver create a chain of receiving objects.

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

Multitron

A

Class has named instances with global access. Use map for one instance per name.

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

Scheduler

A

Explicitly control when threads execute single threaded code.

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

Flyweight

A

Share a large number of fine grained objects using tables.

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

Bridge

A

Decouple abstraction from implementation

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

Active object

A

Decouple method execution from method invocation (asynchronous)

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

Reactor

A

Asynchronous interface for resourceS that must be handled synchronously.

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

Composite

A

Tree structure

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

Adapter

A

Convert one interface into another

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

Thread pool

A

Special case of object pool

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

Abstract factory

A

Interface for creating family of related objects without concrete classes.

Create a specific factory, use interface to access it

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

Builder

A

Separate construction of an object from its representation. Avoid telescoping constructors.

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

Thread local storage

A

Static or global data specific to a thread

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

Command

A

Encapsulate a request in an object. The command pattern forwards the request to a specific object for execution.

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

Observer

A

State change in an object results in notification to all dependencies.

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

Factory method

A

. Interface for creating an object, subclasses determine the instance type.