Find Jobs
Hire Freelancers

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

$30-5000 USD

Concluído
Publicado há aproximadamente 21 anos

$30-5000 USD

Pago na entrega
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 do Projeto: 2909682

Sobre o projeto

1 proposta
Projeto remoto
Ativo há 21 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
See private message.
$7 USD em 14 dias
3,9 (24 avaliações)
2,8
2,8

Sobre o cliente

Bandeira do(a) UNITED STATES
United States
5,0
73
Membro desde set. 7, 2001

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.