c++ and win32 API to simulate the function of snoopy caches

Completed Posted Feb 23, 2003 Paid on delivery
Completed Paid on delivery

please see attachment Write a program in C++ and Win32 API to simulate the function of snoopy caches. Your program actually contains four files, each representing a process. Among the four processes, three of them perform the operation of cache controllers and the fourth one performs the operation of a memory controller. Win32 API socket message passing mechanism is used to simulate the operation of automatic detection of modified data in a cache. >cpsc735p3m1 {this is the memory controller} >cpsc735p3c1 {this is the first cache controller} >cpsc735p3c2 {this is the second cache controller} >cpsc735p3c3 {this is the third cache controller} >s(a,3) {in m1 console} >s(b,1) {in m1 console} >w(a,4) {in c2 console} >r(a) {in c3 console} >w(a,5) {in c3 console} >s(c,2) {in m1 console} >r(c) {in c2 console} >r(c) {in c1 console} >s(d,6) {in m1 console} >w(d,7) {in c2 console} >w(c,8) {in c1 console} >r(a) {in c2 console} >p {in c1 console} c = 8 >p {in c2 console} a = 5 c = invalidated d = 7 >p {in c3 console} a = 5 >p {in m1 console} a = 5 b = 1 c = 8 d = 7 >exit >

## Deliverables

Pseudo code for r(v) if the variableis in the cache then if the variable is invalidated then{ the cache controler sends a message to the memory controler the memory controler sends a variable to the cache controler the cache controler update the varaibles in the cache the cache controler validates the variable in the cache } else{ the cache controler sends a message to the memory controler the memory controler sends a variable to the cache controler the cache controler stores the value in the cache } psudeocode for w(v,i) if the variableis in the cache then{ the cache controler update the varaibles in the cache the cache controler sends a message to the memory controler the memory controler updates the variable in memory the cache controler sends a n invalidations message to all other cache controlers; those cache controlers having a copy of the variable invaldate the variable } else{ the cache controler sends a message to the memory controler the memory controler update the varaibles in the memory the memory controler sends a variable to the cache controler the cache controler stores the value in the cache the cache controler sends a n invalidations message to all other cache controlers; those cache controlers having a copy of the variable invaldate the variable 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

xp ,mel

C Programming Engineering MySQL PHP Software Architecture Software Testing

Project ID: #2909682

About the project

1 proposal Remote project Active Feb 23, 2003

Awarded to:

navenduvw

See private message.

$7 USD in 14 days
(24 Reviews)
2.8