Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Create a 4 pages page paper that discusses minix 2 operating system. so after line no. 21021, declare these counters. Now add hit_counter as I have said in the previous doc. And the time should be inc

Create a 4 pages page paper that discusses minix 2 operating system. so after line no. 21021, declare these counters. Now add hit_counter as I have said in the previous doc. And the time should be incremented each time any function in cache.c is called. So you must add variable time at 21070 &amp. 21035 after having written the code ++hit_counter &amp. Time_requiredtofree_block++. Remember, you have to add printf statements wherever you make an increment to these counters. Initialize hit_counter &amp. time to zero (this is important).

Well, I had written two 'C' files named fil1.c and fil2.c, which added and subtracted two numbers. When I ran this statement on bochs, I got the output of the printf statements. The tests of performance was a two step process. In the first part, don't make any changes to the Block_size and the Hash table, but include the variables hit_counter and time. Run the command and see the results. Then increase the BLOCK_SIZE &amp. the Hash table size and then run the same command again. You will definitely find a change in the results.

The answer to this lies in question 3. The first set of values was obtained for the variables hit_counter and Time_requiredtofree_block, when the value of BLOCK_SIZE and size of the hash table was 1024. The second values were obtained when the size of BLOCK_SIZE &amp. hashTable was increased.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question