Find Jobs
Hire Freelancers

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

$30-5000 USD

Terminado
Publicado hace alrededor de 21 años

$30-5000 USD

Pagado a la 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 del proyecto: 2909682

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 21 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
See private message.
$7 USD en 14 días
3,9 (24 comentarios)
2,8
2,8

Sobre este cliente

Bandera de UNITED STATES
United States
5,0
73
Miembro desde sept 7, 2001

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos 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)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.