30 January 2011

The CPP questions

Templates
  • Create a class that provides singleton feature to derived classes. What are problems faced here?
Pipes and Filters Architecture pattern
  • How to control the data flow between various filters? Assume the data queue between filters is of length 1. What are the various synchronization techniques to control the data movement?
Copy constructor
  • Why Copy constructor parameters are constant references? How do auto pointers solve the problem of multiple references? What are temporary variables?

Remembering OSI layer protocols

I always wanted to remember the layers in OSI reference model. My wife found something on net that makes easy to remember all 7 layers:

All People Seems To Need Data Processing

WordOSI Layer
AllApplication
PeoplePresentation
SeemsSession
ToTransport
NeedNetwork
DataData Link
ProcessingPhysical