anyone can help me? please


problem:
write a program that creates three processes and performs matrix operations at the same time. each process performs a different matrix operation. the program reads three matrices from a text file. the size of the matrix can be of any valid size. use two-dimensional dynamic arrays to store the matrices of different sizes. the program should be able to read different input files containing matrices of different sizes. it is assumed that the text files contains entries that are valid for all the matrix operations required. the process will have the following task:

process A:
1. multiplies the first and the second matrices
2. displays its process id and every entry computed during the operation.
3. displays the resulting matrix product to the display screen.
4. stores the matrix product to a new text file(product.mtx)

process B:
1. multiplies the first and the second matrices
2. displays its process id and every entry computed during the operation.
3. displays the resulting matrix product to the display screen.
4. stores the matrix product to a new text file(sum.mtx)

process C:
1. multiplies the first and the second matrices
2. displays its process id and every entry computed during the operation.
3. displays the resulting matrix product to the display screen.
4. stores the matrix product to a new text file(difference.mtx)

Recommended Answers

All 2 Replies

anyone can help me? please


problem:
write a program that creates three processes and performs matrix operations at the same time. each process performs a different matrix operation. the program reads three matrices from a text file. the size of the matrix can be of any valid size. use two-dimensional dynamic arrays to store the matrices of different sizes. the program should be able to read different input files containing matrices of different sizes. it is assumed that the text files contains entries that are valid for all the matrix operations required. the process will have the following task:

process A:
1. multiplies the first and the second matrices
2. displays its process id and every entry computed during the operation.
3. displays the resulting matrix product to the display screen.
4. stores the matrix product to a new text file(product.mtx)

process B:
1. multiplies the first and the second matrices
2. displays its process id and every entry computed during the operation.
3. displays the resulting matrix product to the display screen.
4. stores the matrix product to a new text file(sum.mtx)

process C:
1. multiplies the first and the second matrices
2. displays its process id and every entry computed during the operation.
3. displays the resulting matrix product to the display screen.
4. stores the matrix product to a new text file(difference.mtx)

What's the question?
http://www.daniweb.com/forums/announcement8-2.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.