tac0S
Template Affectional Command Operating System
Functions
nettest.cc File Reference

Test out message delivery between two "Nachos" machines, using the Post Office to coordinate delivery. More...

#include "copyright.h"
#include "system.h"
#include "network.h"
#include "post.h"
#include "interrupt.h"

Functions

void MailTest (int farAddr)
 Test out message delivery, by doing the following: More...
 

Detailed Description

Test out message delivery between two "Nachos" machines, using the Post Office to coordinate delivery.

Author
Olivier Hureau, Hugo Feydel , Julien ALaimo

Two caveats:

  1. Two copies of Nachos must be running, with machine ID's 0 and 1: ./nachos -m 0 -o 1 & ./nachos -m 1 -o 0 &
  2. You need an implementation of condition variables, which is not provided as part of the baseline threads implementation. The Post Office won't work without a correct implementation of condition variables.

Copyright (c) 1992-1993 The Regents of the University of California. All rights reserved. See copyright.h for copyright notice and limitation of liability and disclaimer of warranty provisions.

Function Documentation

void MailTest ( int  farAddr)

Test out message delivery, by doing the following:

  1. send a message to the machine with ID "farAddr", at mail box #0
  2. wait for the other machine's message to arrive (in our mailbox #0)
  3. send an acknowledgment for the other machine's message
  4. wait for an acknowledgement from the other machine to our original message