File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes matrix multiplication using thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "matrix multiplication using thread" Watch "matrix multiplication using thread" New topic

matrix multiplication using thread

chinna kkkkkk

Joined: Feb 12, 2007
Posts: 1

can somebody help me out in writing a matrix multiplcation program using Threads? Thanks in advance....
marc weber

Joined: Aug 31, 2004
Posts: 11343

"chinna kkkkkk,"

Welcome to JavaRanch!

Please revise your display name to meet the JavaRanch Naming Policy. To maintain the friendly atmosphere here at the ranch, we like folks to use real (or at least real-looking) names.

You can edit your display name here. Thank you for your prompt attention!

In response to your question, the answer is: Yes, we can help you. But you need to explain a little more about what you've already done and where exactly you're stuck.

[ February 12, 2007: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15081

To write a program that can do a matrix multiplication with multiple threads efficiently, you'll have to look at the algorithm for the matrix multiplication and split it into tasks that can performed independently (i.e. one task should not depend on the outcome of the other task). So have a look at the algorithm and think about how you can split it into tasks that can be performed independently and at the same time.

After you have made a plan, you'll have to implement it. For that you'll have to learn how to program multiple threads in Java. The Java Tutorial has a chapter about concurrency and multi-threading: Lession: Concurrency.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: matrix multiplication using thread
jQuery in Action, 3rd edition