The following code segment shows how this could be done. The first set of data is the original string and value of FibNumber. The second and third sets are strings and numbers of your choice, different from the set that precedes them. Use different character arrays for the three strings, string1, string2, and string3. . Write a program that measures the multiprogramming time-slice, or quantum .
Time is defined in conc.h.
If you write a non-multitasked loop that keeps on reading the value of the timer, you will find that the same value of the counter is read several times in a row, and every so often the value increases by 1, indicating that a new 64 ms interval has started. Using this knowledge, you can write a program that measures the quantum. Also, you should know that the first quantum experienced by a program just loaded in a transputer is never a full quantum. In particular, your program should run on only one transputer, the root, and should rely on two multitasked processes to compute and print the primes. The first task will compute the primes and store them in an array as they are found.