Chapter 22 Flashcards

1
Q

Can we send objects to stream

A

Yes

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

What is serialization in socket programming

A

object knows how to read/write themselves to streams and pass through streams

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

What are other names of serialization

A

Flatteing, streaming, dehydrate

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

How we implement serialization in java

A

Through serializeable interface

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

What is the package for serialization

A

java.io

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

What is tagging interface

A

Tagging interface has no methods and serves only to identify the semantics of being serializable

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

Does serializable interface a tagging interface

A

Yes

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

What is automatic writing in serialization

A

System knows how to recursively write out the state of an object to stream

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

What is automatic reading in serialization

A

System knows how to read the data from stream and re-create object in memory

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

How can we prevent serialization

A

Using transient keyword

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

What is multithreading

A

There are multiple processes run in computer and we want that they run parallel (concurrency). This architecture is called multithreading

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

What are 2 ways of achieving multithreading

A

software

hardware

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

What are hardware concurrency trends

A
  • Multiple CPUS’s

- Multiple cores on single chip

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

What are software concurrency trends

A
  • Processes

- Threads

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

Does thread share address-space

A

Yes

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

Does thread can share memory variables directly

A

Yes

17
Q

Does thread use multiple processors

A

Yes