|
| |
![]() |
|
Introduction to NetworkingNachos provides the abstraction of communication using mailboxes. The Nachos networking abstraction reaches to closely connected computers. The messaging is unreliable and messages can be dropped, but they are never corrupted in any way. The networking provides ordered and fixed-sized messages. There are several classes that builds the Nachos networking facility. They are described below. PostOfficeInput & PostOfficeOutputThese classes defines a "Post Office", as a set of mailboxes. The post office handles the transfer of messages, by two main operations:
Incoming messages are delivered into the correct mailbox and threads waiting on Receive is awakened. The post office is also used for transfer synchronization. MailBoxThe MailBox class defines a single mailbox, spoken of above. A mail box keeps the messages until they are transferred to the thread(s). The post office puts the incoming messages into the correct mailbox, so that the messages can be read by threads on the computer where the mail box resides. A mail box may contain several messages. Mail & MailHeaderThe Mail and MailHeader objects works together rather tightly. The Mail object mainly contains the data that is to be sent. The Mail object defines the format of a message. The MailHeader class defines the different parts of the message header, including, for example, the destination mail box address. When a Mail is created the MailHeader is appended. |
Nachos Introduction Tutorials |
| © 1999-2008 - All rights reserved. CS tutorials™ and the logo are registered trademarks of CS tutorials. | |