class_13 - Software Engineering 3156 17-Oct-01 #13:...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Software Engineering 3156 17-Oct-01 #13: Concurrent Models Phil Gross
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Administrivia C++ for Java Programmers Thursday 6-8pm, 415 CEPSR Research Fair 30 November
Background image of page 2
3 Group Fun Superslacker members Working on possibilities Probably can’t eject from class but can hammer grades down further
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Distributed Objects We’re using “socket model” communications To connect to a another machine, you explicitly “open a connection” to it, returning a stream You then write to and read from the stream, using standard I/O methods
Background image of page 4
5 Downsides Plenty of parsing involved Have to know which machine to connect to Synchronous Unless manually threaded Versioning and consistency
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Serialization Standard method of encoding objects to a stream Problem: what to do about pointers E.g. how to serialize a linked list Answer: number each object as it goes out, starting with 0 Replace pointer with serial number
Background image of page 6
7 Serialization II C++ gives framework <<, >> operators Stream abstraction Does no serialization Java builds it in Built on top of Reflection
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 Java Reflection At runtime, can completely determine composition of classes Surprisingly powerful technique The Class class Object.getClass() / Class.forName() newInstance() getMethods(), getConstructors(), etc.
Background image of page 8
New Serialization Trends What is the format on the wire Java Object serialization has same answer as
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/09/2010 for the course COMS 3156 taught by Professor Philgross during the Fall '01 term at Columbia.

Page1 / 28

class_13 - Software Engineering 3156 17-Oct-01 #13:...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online