Encerrado

In this program you will implement an I/O handler that receives requests from processes to perform input-output operations. Create two user processes that make request to the I/O handler to perform I/O on their behalf. The communication is done by Unix

In this program you will implement an I/O handler that receives requests from processes to perform input-output operations. Create two user processes that make request to the I/O handler to perform I/O on their behalf. The communication is done by Unix PIPE facility. Input data for each user is simulated using files stored on disk. Assume input data consists of lines, each line no more than 80 bytes. As part of simulation, each user process stores the lines obtained from the IO handler in a file and prints it at the end of simulation. This last part is done only for validating the results and is not part of a real system. The following are the functional descriptions of the I/O handler and the user processes: I/O Handler: repeat { get(from = sender; message = m); case m ‘open’: open file; /* issue a Unix open macro */ ‘read’ : read a previously opened file; ‘write’: write .. … m = result of open/read/write; /*including error messages */ put(to = from; message = m); } until done; User process: Initialization; put(to= i/o handler; message = ‘open filename’); some independent activity /* can simulate it by sleep(n) */ get (from = i/o handler; message = m); if (m is an error message) take action else continue; repeat { put (receiver = i/o handler; message = ‘read next line’); some independent activity /* simulated by sleep(n); */ get (from = i/o handler; message = m); append m to a file for later validation } until no more lines print results stored in the file above.

## Deliverables

Complete and fully-functional working program(s) in executable form as well as complete source code of all work [url removed, login to view] comments Complete copyrights to all work purchased.

## Platform

UNIX,C

## Deadline information

dead line is 14 feb- 2002

Habilidades: Programação C, Engenharia, Linux, MySQL, PHP, Arquitetura de software, Teste de Software, UNIX

Veja mais: the n and o, sleep programming, perform line, in this line, in line program, get c programming done, end user programming, c programming input output, continue line in c, behalf, communication is, program line, above the line, unix\\, unix, unix C, simulation program, processes, perform, operations

Acerca do Empregador:
( 6 comentários ) United States

ID do Projeto: #2838818

1 freelancer está oferecendo em média $38 para esse trabalho

leepwo

See private message.

$38.25 USD in 14 dias
(41 Comentários)
4.7