Skip to main content

Posts

Featured

Matrix Multiplication using threads in java

  M atrix Multiplication using threads in java import java . util .*; class mat {         static int [][] mat ;     static int [][] mat2 ;     static int [][] result ;     public static void main ( String [] args ) {               Scanner sc = new Scanner ( System . in );       int n = sc . nextInt ();       int m = sc . nextInt ();       int n1 = sc . nextInt ();       int m1 = sc . nextInt ();       mat = new int [ n ][ m ];       mat2 = new int [ n1 ][ m1 ];       result = new int [ n ][ m ];               for ( int i = 0 ; i < n ; i ++) {             for ( int j = 0 ; j < m ; j ++) {                 mat [ i ][ j ] = sc . nextInt ();             }         }           for ( int i = 0 ; i < n 1 ; i ++) {             for ( int j = 0 ; j < m1 ; j ++) {                 mat2 [ i ][ j ] = sc . nextInt ();             }         }         try {                         Multiply multiply = new Multiply ( n , m );                        

Latest Posts

How to block fake FB page?, How to remove my picture from internet?,#Cyber crimes, #Consumer helpline, #Financial fraud