Question
Forked Block Matrix Multiplication Function - C programming - Blocked matrix multiplication using fork to spawn subprocesses. The basic goal is to allow multiple processes
Forked Block Matrix Multiplication Function - C programming - Blocked matrix multiplication using fork to spawn subprocesses. The basic goal is to allow multiple processes to work on blocks on the output matrix simultaneously. You will use the fork system call to create child processes. Note that fork is not a normal Windows system call. You will definitely need to use shm_open and mmap to handle the output matrix. Using a single semaphore for the entire output matrix is not optimal in terms of speed; ideally you want to assign a semaphore for each element of the matrix
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started