Halo....I'm new here......
Can somebody help me with this question?
Its a assignment but I REALLY DON HAV ANY IDEA HOW TO DO IT!!!!
Write C++ code for the following algorithm:
1) Determine job's reqeusted memory size
2) if job_size>size_of_large_partition
then reject job
print appropriate message
Go to step 1 to handle next job
else continute with step 3
3) Set counter to 1
4)Do while counter<=number_of_partition in memory
then counter = counter + 1
if mem_partition_status(counter) = "free"
then load job into mem_partition(counter)
mem_partition_status(counter) to "busy"
go to step 1
counter = counter + 1
5) No partition available at this time, put job in waiting queue
6) Go to step 1
P/S: This is a algorithm to load a job in a fixed partition....
Plz...I begged for your help!!!!!