creating simple threads and observing outputs

Cancelled Posted Aug 2, 2005 Paid on delivery
Cancelled Paid on delivery

Note that this assignment should be tested on Windows system. You do have to slightly modify Lab 2-2 and Lab 5-1

to obtain the file to be used with this project.

Given the multithreading application in [Lab 2-2][1](attachment) and the floppy disk driver in [Lab5-1][2] (attachment), write an application that creates a thread to read a disk sector, save the sector data (read as characters into buffer) in a two-dimensional integer array, one row per line, and then create another thread to add all the arrays together (adding corresponding array elements) and print to screen the sum array. Next, consider to overlap the summation of arrays and the readings of disk sectors, i.e., once a sector is read, the corresponding array is added to the sum array while other threads are reading other sectors. (Hint, consider using an array to poll the threads) Write the program in the way that it runs two passes, in the first pass no overlapping is used and in the second pass the overlapping is used. A difference in the elapsed time should be observed.

Your program will only take the disk drive label, the beginning sector, and the ending sector as the command line arguments. No number of threads or time duration is needed as command line arguments by the program. The number of threads should be the same as the number of sectors. In addition, your program does not need to print out the data in each sector but the sum array in the end, together with the total elapsed time used by the program.

## 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

Turn in a hard copy of your program by the due date .Be sure to document your program. Documentation should be included and (4) comments of critical code and data declarations also. The same should also be done for each function written in the program.

In addition, turn in the source code of your program and a print out of the test run(s) of your program.

C++ tested on windows.

Attached files are suppose to help you out

just modify the code as required in the document and use them for this project.

C Programming PHP

Project ID: #3833024

About the project

Remote project Active Aug 4, 2005