Question
Modern desktop and server processors support simultaneous multithreading (also called hyperthreading). When will there be a performance benefit in scheduling two non-interactive applications on the
Modern desktop and server processors support simultaneous multithreading (also called hyperthreading). When will there be a performance benefit in scheduling two non-interactive applications on the same hyperthreaded processor core so that they run in parallel rather than running sequentially, one job one after the other? [4 marks] Regardless of the result, the computer will not have the opportunity to throw the ball again. iv. Display how high was the throw in inches. v. A name must not be longer than 7 characters and must contain only letters or blank spaces. If name is valid, return 1 otherwise return 0. int calculate_net_height(...) This function determines the height of the net in inches of the net string that is input by the user. Return the calculated net height in inches" What problem do real-time scheduling algorithms try to solve? [2 marks] If at least one of these conditions is not met, then the function returns 0 otherwise 1. int game_logic(...) This function implements the game logic as indicated by the rules above. (b) the set of all recursive sequences of natural numbers [2 marks] (c) the set of all finite sequences of natural numbers [5 marks] Display how many points are being added or deducted from the player. v. Display the player's total points (i.e., when points are added or deducted from his total points after the throw). Player two (computer) b. Once the player one has thrown, the computer will throw the ball. i. The computer does not a bet to be able to throw. ii. If the computer threw the ball over the net, then 9 points are deducted from its total points. iii. If the computer threw the ball under (or the same height as) the net, then 4 points are added to its total points. What is the principal difference between a CAM and a RAM? [4 marks] (b) What is the difference between fully associative, set associative and direct mapped lookup? [6 marks] (c) Why are TLBs always much smaller than caches? [4 marks] (d) Which of the lookup mechanisms in part (b) is usually used for a TLB and why aren't the other mechanisms usually used? [6 marks] (i) What scheduling problem could arise here? [2 marks] (ii) How could this problem be overcome? [2 marks] 6 CST.2000.4.7 9 Numerical Analysis I Define the absolute error x and relative error x in representing a number x. How are these errors related? Which type of error is associated with the term loss of significance? Define machine epsilon m. The computers points is added to their total points if they do not meet the criteria to rethrow otherwise: If the computer threw the ball less than half the height of the net, the ball is thrown again. If itsrethrow is still under (or the same height as) the net, then 6 points are added to its total points, otherwise 7 points are deducted from itstotal points. For level-1 data caches using a snoopy cache coherency protocol, is a write-back or a write-through policy more likely to be used? If answer is 'N', the run ends. iii. Before the run ends, display the following statistics: How many times the player one won out of all the games played. How many times the computer won out of all the games played. Required functions: Choose the appropriate parameters for each of the following functions. int is_valid_seed(...) This function checks the input value for the seed and validates that only digits were entered, and that the value ranges in [1, 99999], inclusive.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started