Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

matrix multiplication using thread

 
chinna kkkkkk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

can somebody help me out in writing a matrix multiplcation program using Threads? Thanks in advance....
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.

-Marc
[ February 12, 2007: Message edited by: marc weber ]
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15438
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic