create multiple threads and perform a timing analysis on when and how the threads are being executed in a time sharing multiprogramming system, using c programme.
$10-30 AUD
Terminado
Publicado hace alrededor de 8 años
$10-30 AUD
Pagado a la entrega
create multiple threads and perform a timing analysis on when and how the threads are being executed in a time sharing multiprogramming system. In part II (more details to be provided later), you will analyse the Part-1 program submitted by another student, to try to find security vulnerabilities in the program.
The program requires two command line arguments to execute and they are:
1. numthreads – an integer value that specifies how many threads will be created, and
2. increment – the number of integer values that each thread will work with.
The program creates the specified number of threads and assigns to each one of them an interval of integer values, say (a, b), where a is the starting value and (b-1) is the end value. Each thread computes a value s, which is based on your student-id, choose one of the following for implementation:
If your student-id mod 3 = 0, then do this: the summation of the integers in its interval, that is:
a + (a+1) + (a+2) + . . . + (b-2) + (b-1). In other words you compute the sum of the integers.
Once this program is working, compute the time it takes to execute the program. You can use the time function in Unix. Extend the program further so that each thread will compute the time it takes to execute individually and print the result. For this you may want to use the gettimeofday and ctime functions in the C programming language, or any other appropriate time functions.
Hello, i am expert in java/c/c++ and i can deliver any task in least time and least payments. The code will be well commented
and well formatted for better understanding. I believe in long term relations so first check your work then release the
payments.
Pm me for further details. Thank You!