If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Concepts Question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-06, 19:10
mrt_gooners85 mrt_gooners85 is offline
Registered User
 
Join Date: Mar 2006
Posts: 1
Question Concepts Question

Hi, I'm new to this forum, I'm currently taking an Into to Database Management course in my university and I need some help with my assignment questions. I've been googling but I can't find anything useful to help me answering some questions.

This assignment is all about database design & concept, it's all very theoritical and I'm having hard time getting my head around it, so let me just start it off
Database <---> Buffer Manager <---> Buffer Pool

the Buffer Manager maintains pin_count and dirty bit

a)
Why do we have pin_count instead of simply pin_flag ?
where:
pin_flag = false if pin_count = 0 and
pin_flag = true if pin_count > 0


I read from textbook that The number of times that the page currently in a given frame has beenrequested but not released -the number of current users of the page- is recorded in the pin_count variable for that frame.


b)

Consider these 2 buffer replacement policies:
1. Evicts a random buffer page chosen from only those frames whose dirty bits are set and pin_count = 0

2. Evicts a random buffer page chosen from only those frames whose dirty bits are NOT set and pin_count = 0

Under what circumstances (if any) strategy #1 is more efficient than #2 ?
Under what circumstances (if any) strategy #2 is more efficient than #1 ?

Thanx for the help guyz
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On