Sorry for the last line.. Made some error before.

On 9 August 2011 08:51, Dipankar Patro <[email protected]> wrote:

> In hierarchy M1->M2
> 0.97 Hit => 2x0.97 = 1.94 ns
> M2 is not accessed in case of hit
> 0.03 Miss => 0.03x100 = 3ns (miss rate x miss penalty)
>
> Total = 4.94ns
>
> +1 to Aditya
>
> so the average access time is = hit + miss = 1.94 + 100.06
>
>
> On 9 August 2011 08:11, Raman <[email protected]> wrote:
>
>> For ques 3, remember that context switch is useful in 3 situations :
>>  1. Multitasking (when CPU is to be switched among processes(usually
>> preemptive))
>>  2. Interrupt Handling (different from interrupt servicing) - In this, CPU
>> requests for a service (eg read from a disk) but doesnt wait for it to
>> complete. On the other hand, it continues to perform sm othr task after
>> sendin the req. With the help of interrupt handlers, later the CPU is
>> interrupted when the task is over. Thus it req context switch
>>  3. Switch from user and kernel modes (though this varies with OS)
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/algogeeks/-/Eu2sQW7VkXQJ.
>>
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
>
> ___________________________________________________________________________________________________________
>
> Please do not print this e-mail until urgent requirement. Go Green!!
> Save Papers <=> Save Trees
>



-- 
___________________________________________________________________________________________________________

Please do not print this e-mail until urgent requirement. Go Green!!
Save Papers <=> Save Trees

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to