Find Jobs
Hire Freelancers

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

$30-5000 USD

已完成
已发布大约 21 年前

$30-5000 USD

货到付款
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
项目 ID: 2909682

关于此项目

1条提案
远程项目
活跃21 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$7 USD 在14天之内
3.9 (24条评论)
2.8
2.8

关于客户

UNITED STATES的国旗
United States
5.0
73
会员自9月 7, 2001起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。