Message 23

allocate/deallocate

X-Added: With Flames (bblib $Revision: 1.4 $)
Return-path: <xico+@andrew.cmu.edu>
X-Andrew-Authenticated-as: 49947;andrew.cmu.edu;Francisco MacHado Aires Pereira
Received: from po9.andrew.cmu.edu via trymail for bb+academic.cs.15-721@andrew.cmu.edu
          ID </afs/andrew.cmu.edu/usr0/bb/Mailbox/cvfB5ta00Udh0tX040>;
          Sat, 22 Sep 2001 13:59:21 -0400 (EDT)
Received: from unix14.andrew.cmu.edu via qmail
          ID </afs/andrew.cmu.edu/service/mailqs/q007/QF.8vfB5Dy00UjKI1pEB3>;
          Sat, 22 Sep 2001 13:58:39 -0400 (EDT)
Received: from unix14.andrew.cmu.edu via qmail
          ID </afs/andrew.cmu.edu/usr25/xico/.Outgoing/QF.gvfB5DK00UjKAMVV5d>;
          Sat, 22 Sep 2001 13:58:39 -0400 (EDT)
Received: from mms.4.60.Jul.16.2001.15.09.31.sun4.57.EzMail.2.0.CUILIB.3.45.SNAP.NOT.LINKED.unix14.andrew.cmu.edu.sun4x.57
          via MS.5.6.unix14.andrew.cmu.edu.sun4_57;
          Sat, 22 Sep 2001 13:58:39 -0400 (EDT)
Message-ID: <IvfB5DK00UjKQMVUwO@andrew.cmu.edu>
Date: Sat, 22 Sep 2001 13:58:39 -0400 (EDT)
From: Francisco MacHado Aires Pereira <xico+@andrew.cmu.edu>
X-Andrew-Message-Size:     500+0
Content-Type: text/plain
If-Type-Unsupported: alter
To: Andrew BBoard Account <bb+academic.cs.15-721@andrew.cmu.edu>
Subject: allocate/deallocate
Cc: 

Hi,

as you said before, allocate and deallocate call the buffer
manager. But should we have to change anything in our implementation
in order to acommodate this? For instance, do we have to reserve some of
the frames? Do they have any other side effects?

I would also like to be sure about the meanings:

    unsigned int getNumBuffers() const;

-> is this <=> buffer size,?

    unsigned int getNumUnpinnedBuffers();

-> is this (# of unpinned frames) + (# of free frames) ?


thank you,
francisco