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!!!!
So....Plz help......
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
if job_size>mem_partition_size(counter)
then counter = counter + 1
else
if mem_partition_status(counter) = "free"
then load job into mem_partition(counter)
change
mem_partition_status(counter) to "busy"
go to step 1
else
counter = counter + 1
End do
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!!!!!