you can modify an existing program or create a new [login to view URL] see attachment it has full explanation. if coder finish the work in the same day i will give $10 bonus on the top of the bid. 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. The following shows the function supported by the memory controller. see attachment for assignmnt and psudocode also program
## Deliverables
You may create two threads for each cache controller and the memory controller. One thread is responsible for taking commands from the user and the other acts like a receiver waiting for an incoming message and processing it. The following shows a scenario of running the program, where user's inputs are represented in boldface. >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 >
## Platform
xp,melinuim,nt etc