Assignment requires that you should create a virtual machine inAWS (Amazon Web Services) to develop your programsto examine the performance of different pthread contention scope.Try to adopt two different pthread contention scope,process-contention scope, and system-contention scope, execute andcompute the average turnaround time.
Problem Statement
According to the code attached in the document, rewrite thefunction runner that
l The value of MAX is the last 8 number of your student ID
l Display the turnaround time of each pthread of each schedulingalgorithm
l Please discuss the results of these scheduling algorithms.
Code MUST BE WRITTEN IN C
#include <pthread.h>
#include <stdio.h>
#include <sys/time.h>
#define NUM_THREADS 5
struct timeval tp_s, tp_e;
struct timezone tzp_s,
PayPal Gateway not configured
PayPal Gateway not configured