l******y 发帖数: 204 | 1 希望能给点建议,本人EE学生修了们CS课,完全不会。请大家指点,好心给个网址参考
也行。谢谢!
最好还是用C/C++吧。
单用户-三服务器,所有服务器都是一模一样的。
用户随便选一个服务器写入,其他服务器也有一份copy。
用户随便选一个服务器读取,可读是显示‘successful’,否则‘failure’返回到用
户。
支持创建文件,在读写不存在文件时报错
1. Source code must be in the C /C++ /Java programming language.
2 Client-Server Models
Require the knowledge of thread and/or socket programming and its APIs.
Each process (server/client) is running on a single machine (netxx).Three
servers and a client to emulate a distributed file system. All of the
servers have a local copy of the same file. All replicas of a file are
consistent.
a. The client may send a ‘read from file’ REQUEST to any of the servers (
randomly selected). In this case, the server should reply with requested
content (if available).
b. The client may send a ‘write to file’ REQUEST to any of the servers (
randomly selected). The server must report a ‘successful’ message to the
client if all copies of the file, across the servers, are updated
consistently. Otherwise, the server must report a ‘failure’ message to the
client.
c. Support the creation of new files, writes to the end of files, reads and
writes at specific offsets from file beginning.
d. Can report an error if an attempt is made to read/write from/to a file
that does not exist at the requested server.
| M**u 发帖数: 10158 | 2 不就是message passing么,这有什么难得
the
and
【在 l******y 的大作中提到】 : 希望能给点建议,本人EE学生修了们CS课,完全不会。请大家指点,好心给个网址参考 : 也行。谢谢! : 最好还是用C/C++吧。 : 单用户-三服务器,所有服务器都是一模一样的。 : 用户随便选一个服务器写入,其他服务器也有一份copy。 : 用户随便选一个服务器读取,可读是显示‘successful’,否则‘failure’返回到用 : 户。 : 支持创建文件,在读写不存在文件时报错 : 1. Source code must be in the C /C++ /Java programming language. : 2 Client-Server Models
|
|