C Distributed Systems

Cerrado Publicado Jul 11, 2004 Pagado a la entrega
Cerrado Pagado a la entrega

It will make use of TCP (transmission control protocol) over IP (Internet protocol). Since you’ll want to monitor your server code and your client code simultaneously, you’ll find it useful to open multiple windows to the same hosts. This is a simple matter of opening multiple instances of the same terminal program. Write two short programs, get_lines_from_user and print_lines_to_screen. They will run in separate windows which may be on the same or different machines. get_lines_from_user will repeat the following loop: [url removed, login to view] the user [url removed, login to view] a line of input that the user types [url removed, login to view] that input to print_lines_to_screen using the function msg_to_from_server() defined in client_support.c print_lines_to_screen will repeat the following loop: [url removed, login to view] msg_from_client() in server_support.c to wait for print_lines_to_screen to send it a line of input [url removed, login to view] the line to the screen the text by writing two programs: [url removed, login to view] coordinator, a server program that will receive messages from its clients using msg_from_client() and will reply to the message using reply_to_client(), both in server_support.c 2.a client program. You will run many copies of this program in different windows on several different machines. Each of the clients will repeat the following loop: a)send a message to the coordinator saying that it wants to enter its critical section b)…time passes… c)receive permission from coordinator to enter critical section d)print “In critical section ??" type return to continue?? e)wait until you type return f)send a message to the coordinator saying that it has left is critical section The clients will send messages to the server with msg_to_from_server() defined in client_support.c, which with appropriate call parameters will also wait for a reply. Whenever no client is in its critical section, the coordinator will pick one of the clients that wants to enter its critical section and use reply_to_client() to tell the client that it may enter its critical section.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

unix

Programación en C Ingeniería Linux MySQL PHP Arquitectura de software Verificación de software UNIX

Nº del proyecto: #3276445

Sobre el proyecto

3 propuestas Proyecto remoto Activo Jul 11, 2004

3 freelancers están ofertando un promedio de $41 por este trabajo

saifullahbaig

See private message.

$51 USD en 9 días
(9 comentarios)
2.2
smitsvw

See private message.

$57.8 USD en 9 días
(4 comentarios)
1.1
rajeshgoli

See private message.

$12.75 USD en 9 días
(2 comentarios)
0.4