You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy the following code and compile.
a. What is done in the below code? Explain,
b. Write down the time consumed by the process.
Modify the code as below and recompile it. Execute the code now and see the time taken for the process. Compare the new time with the previous time. If the programme consumes much time than the previous code, explain the reason for it.
Modify the code to manually distribute the workload to different threads. Attach your code.
Modify the code to distribute the workload into multiple threads by using OpenMP libraries. Attach your codes.