This Java program executes one or more matricial products by using different approaches, concerning threads, offered by the Java platform. Then for each of those is registered the execution time.
- Single-threaded matrix multiplication
- Multi-threaded matrix multiplication using "raw" threads, thread pool and threads waiting at a cyclic barrier
- Comprehensive JavaDoc documentation
- Simple example of use of a makefile file
- Get a Java Development Kit (JDK). This program has been developed using openjdk 17.0.10, but earlier version, from Java 8 should work.
- Clone this repository:
git clone https://github.com/PapiDrago/threadMatrixProduct.git
- Generating a particular number 'N' of matrices ready to be multiplied:
java Main [N]
- Generating as many matrices as the command-line arguments with particular values for rows and columns:
java Main [rows],[columns]
For example:
java Main 2,4 4,2
There will be generated two matrices. The first with dimension '2x4', the second one with order '4x2'.