Find Jobs
Hire Freelancers

C program using fork/pipes

$15-20 USD

Đã hủy
Đã đăng vào gần 18 năm trước

$15-20 USD

Thanh toán khi bàn giao
The purpose of this project is to gain experience using the Unix fork() and pipe() functions. In this project you will compare the results of using one process to do some processing versus using multiple processes. A data file contains log records. A record contains a request that has a date, an operation and a resource. Your program should read these records and determine the average number of requests per day, the average number of each operation per day, and the average number of requests per resource per day. Your program should determine the time it takes to produce a result. Sample output: Log File Statistics Report Average number of requests per day: ###.# Average number of each operation per day: XXX ###.# XXX ###.# … XXX ###.# Average number of requests per resource per day. Resource # ###.# Resource # ###.# … Resource # ###.# Time required: #.## seconds --------------------------------------- System Description When one process is used, the file is read sequentially and each part of the report is generated sequentially. When multiple processes are used, there are two ways you should employ parallelism: 1) The file can be read by multiple processes at a time. For example, if two child processes read the file, one child could read the first half, and at the same time the second child could read the second half. The second child should use the seekg() function to position at the beginning of the second half. 2) The computations can be processed in parallel by child processes. Once a child has completed its computations, the results can be sent to the parent processes via a pipe. ------------------------------------ Execution run your project first using one process to do all activities and record the time. should then let the user input how many parallel processes to use for reading in the file, and whether or not to use parallel processes for the computations. ## 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). * * *This broadcast message was sent to all bidders on Tuesday Jun 20, 2006 3:21:56 PM: I have attached the logfile that should be used. Please respond if you can complete this by 12am cst tonight. ## Platform unix, c
Mã dự án: 3588531

Về dự án

3 đề xuất
Dự án từ xa
Hoạt động 18 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
3 freelancer chào giá trung bình $16 USD cho công việc này
Avatar người dùng
See private message.
$17 USD trong 1 ngày
5,0 (3 nhận xét)
2,3
2,3
Avatar người dùng
See private message.
$12,75 USD trong 1 ngày
5,0 (4 nhận xét)
0,6
0,6
Avatar người dùng
See private message.
$17 USD trong 1 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
Blountsville, United States
5,0
1
Thành viên từ thg 1 20, 2006

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.