CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2003
    Location
    Long Island
    Posts
    11

    A. Cache Consistency Distributed Application

    Design and write an application that maintains a consistent replicated cache. Each instance of the application will maintain a replicated cache of information, such that each instance of the application’s cache is identical. One may run many instances of the application and thus have many instances of the replicated and consistent cache. This project requires one to create an application that receives messages and places them in a cache (memory). It also requires that one write an application that generates cache entries and sends them to each instance of the application.

    The application must be able to display the cache on the screen (a console application is fine) so that we can check for cache consistency. When a new message arrives from the data generating application, the information is to be added to the cache.

    Can someone help?

  2. #2
    Join Date
    Aug 2002
    Location
    Germany, Berlin
    Posts
    60
    You have to define your problem more precisely, not your whole task to do in your lecture.

    Anyway, to replicate identical cache infos in each instance, you need a constructor with a reference param for all classes.

    cache theCache;
    public CONSTRUCTOR (ref cache){ theCache=cache;}

    public cache getCache //let you return the cache
    {
    get{ return theCache;}
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured