Chapter 22 Flashcards
Can we send objects to stream
Yes
What is serialization in socket programming
object knows how to read/write themselves to streams and pass through streams
What are other names of serialization
Flatteing, streaming, dehydrate
How we implement serialization in java
Through serializeable interface
What is the package for serialization
java.io
What is tagging interface
Tagging interface has no methods and serves only to identify the semantics of being serializable
Does serializable interface a tagging interface
Yes
What is automatic writing in serialization
System knows how to recursively write out the state of an object to stream
What is automatic reading in serialization
System knows how to read the data from stream and re-create object in memory
How can we prevent serialization
Using transient keyword
What is multithreading
There are multiple processes run in computer and we want that they run parallel (concurrency). This architecture is called multithreading
What are 2 ways of achieving multithreading
software
hardware
What are hardware concurrency trends
- Multiple CPUS’s
- Multiple cores on single chip
What are software concurrency trends
- Processes
- Threads
Does thread share address-space
Yes