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

    Algorithm for dynamic resource allocation

    Hi all,

    I am working on dynamic resource allocation problem. I have set of
    Consumer and resource. Consumers are with priority (High, Medium,
    Low). Now I want to assign resource slice to each consumer based on
    priority and no of consumers.

    ie
    Priority | No of Consumers
    ---------------------------------------
    High | 8
    Medium | 5
    Low | 2

    OR

    Priority | No of Consumers
    ---------------------------------------
    High | 1
    Medium | 2
    Low | 10

    My assumption is resource is 100 % and how can I assign slice of
    resource to each Consumer based on priority.
    Can any body give me idea which algorithm I should use.....

  2. #2
    Join Date
    Nov 2008
    Location
    England
    Posts
    748

    Re: Algorithm for dynamic resource allocation

    Plenty of ideas here.
    Get Microsoft Visual C++ Express here or CodeBlocks here.
    Get STLFilt here to radically improve error messages when using the STL.
    Get these two can't live without C++ libraries, BOOST here and Loki here.
    Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
    Always use [code] code tags [/code] to make code legible and preserve indentation.
    Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.

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