Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: HELP ME PLEASE MEMORY MANAGEMENT PROGRAM USING JAVA

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HELP ME PLEASE MEMORY MANAGEMENT PROGRAM USING JAVA

    SINGLE USER CONTIGOUS SCHEME:

    INPUT THE SIZE OF MEMORY
    DISPLAY THE SIZE OF THE OS BY COMPUTING 20% OF THE MEMORY
    INPUT THE NUMBER OF JOBS
    EXAMPLE: IF THE NUMBER OF JOB IS ENTERED THE SCREEN WILL GIVE YOU AN OUTPUT LIKE THIS
    JOB 1;
    JOB 2;
    JOB 3;
    JOB 4;

    SET THE FOLLOWING VALUE OF THE MEMORY REQUIREMENT OF EACH JOBS: 15,30,40,2
    ASSUMING THE MEMORY SIZE IS 64MB
    DISPLAY THE WASTED MEMORY FOR EACH JOBS AND THE AVERAGE WASTED MEMORY FOR ALL THE JOBS
    DISPLAY THE PERCENTAGE OF ALL THE JOBS:

    64-15=49 15 MEMORY USAGE
    64-30=30 30 MEMORY USAGE
    64-40=24 40 MEMORY USAGE
    64-2=62 2 MEMORY USAGE


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: HELP ME PLEASE MEMORY MANAGEMENT PROGRAM USING JAVA

    Please do not post multiple copies of the same thread. It will not help to get your posts answered any quicker.

    What are you stuck on exactly?
    Please post the code you have written.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. HELP! Design Review & Risk Management topics (in java projects)required
    By gangestech in forum Java Theory & Questions
    Replies: 0
    Last Post: September 6th, 2010, 04:11 AM
  2. Memory Handling -de allocate memory in Java
    By 19world in forum Java Theory & Questions
    Replies: 4
    Last Post: June 15th, 2010, 04:05 AM
  3. Out of memory - Java heap space
    By fraxx in forum Java Theory & Questions
    Replies: 4
    Last Post: November 24th, 2009, 05:26 AM
  4. Java memory management
    By trueacumen in forum Java Theory & Questions
    Replies: 5
    Last Post: August 12th, 2009, 02:40 AM