cis4307, Fall 2009 10 Minute Test # 4 October 1, 2009 1. (10) In CUDA we have seen that a grid is executed by call like foo<<>>(a, b, c) How will this call be executed? Say as much as you can. 2. (10) We are dealing with a system for which we can assume an M|M|1 behavior. We are told that arrival rate is 4 jobs per second and that the utilization is 80%. (a) What will be the response time? (b) What will be the average queue size? 3. (15) Write the code for the function char * longest(const char * s) which returns a pointer to the longest substring of s that consists of letters. So longest("aba-32 * salome(foo,3)") returns a pointer to the initial 's' of "salome".