CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2009
    Posts
    3

    Page aligned alloc

    Hi!!

    Is there someway to allocate pages? (alloc 4kb chunk of memory) the idea is to take advantage of paging when working with files of 4kb records.

    I would like to know if it is possible for windows and linux.

    thanks!!!

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: Page aligned alloc

    In Windows, you can do this using the GlobalAlloc and VirtualAlloc APIs.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured