Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

please help me.....

please help me, my professor told me that this will work in LINUX. then it makes me confuse on how do i display the [b][italic][u]process ID[/u][/italic]
[/b].

please help help
....

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 [italic]process id[/italic] 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 [italic]process id[/italic] 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 [italic]process id[/italic] 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)




Comments

Sign In or Register to comment.