Đã Đóng

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

Kĩ năng: Lập trình C, Kĩ thuật, Linux, MySQL, PHP, Kiến trúc phần mềm, Kiểm tra phần mềm, UNIX

Xem nhiều hơn: 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

Về Bên Thuê:
( 6 nhận xét ) United States

ID dự án: #2838818

1 freelancer đang chào giá trung bình $38 cho công việc này

leepwo

See private message.

$38.25 USD trong 14 ngày
(41 Nhận xét)
4.7