Graphical application
Budget: $10 – $30 USD
From a text file we read three square matrices of maximum size NxN denoted by A, B, C and a variable M with the property that M <= N. Create a graphical application (using Visual Studio, win32 API) in which to calculate the product of quadratic matrices (A * B) * C of size MxM by creating two secondary threads: the first performs the product A * B, and the second will multiply the resulting matrix of the first thread with the C matrix. Both threads will be created simultaneously, the necessary synchronization being achieved through a traffic light.
Example: N = 4, M = 3 for the matrix A = [1,2,3,4; 1,2,3,4; 1,2,3,4; 1,2,3,4]; the first M rows and the first M columns will be used in the calculation of the product, A = [1,2,3; 1,2,3; 1,2,3].
Example: N = 4, M = 3 for the matrix A = [1,2,3,4; 1,2,3,4; 1,2,3,4; 1,2,3,4]; the first M rows and the first M columns will be used in the calculation of the product, A = [1,2,3; 1,2,3; 1,2,3].