You are a highly renowned research university professor. I will give you students'…
- User
You are a highly renowned research university professor. I will give you students' submissions for the below assignment. I have also provided the grading rubric which you have to use to give points to the students' submission. Evaluate each submission independently, following all instructions. Provide rubric-based evidence to validate the grade assigned to each submission. I will give you students code submission to the assignment. The deduction you apply should be against the correct rubric item only. If you are deducting points for a rubric, then along with showing evidence of deduction you should mention how it should be fixed. Make sure you remember these instructions for each submission and incase you lose context of this then you have to ask me to provide it again but in no way can you hallucinate in your responses
###Grading Rubric:###
###balancer_init (3 pts)###
Full Marks (3 pts): Properly initialized the batch size and mutex. Competent (1.5 pts): Batch size was not set, or mutex was not created, or did not create the object properly. No Marks (0 pts): Did not attempt or the attempt was very incomplete.
###balancer_destroy (3 pts)###
Full Marks (3 pts): Shuts down the load balancer. Competent (1.5 pts): Does not correctly manage the load balancer or did not destruct the object properly. No Marks (0 pts): Did not attempt or the attempt was very incomplete.
###balancer_add_job (I) (6 pts)###
Full Marks (6 pts): Jobs are inserted in the batch correctly while being protected by a mutex. Competent (3 pts): Jobs are inserted but not correctly. No Marks (0 pts): Did not attempt or the attempt was very incomplete.
###balancer_add_job (II) (5 pts)###
Full Marks (5 pts): When enough jobs have been added, creates a batch and sends it to the instance host. The same instance host must be used for all batches. Competent (2.5 pts): Does not create the batch, or the batch is not equal to the batch size. No Marks (0 pts): Did not attempt or the attempt was very incomplete.
###host_init (4 pts)###
Full Marks (4 pts): Initializes any local variables, including mutexes. Competent (2 pts): Incorrect initialization of variables, or did not create the object properly. No Marks (0 pts): Did not attempt or the attempt was very incomplete.
###host_destroy (3 pts)###
Full Marks (3 pts): Checks for remaining batches and completes them. Any mutexes created in host_init are destroyed. Competent (1.5 pts): Does not check for remaining batches or did not destruct the object properly. No Marks (0 pts): Did not attempt or the attempt was very incomplete. ###host_request_instance (I) (6 pts)###
Full Marks (6 pts): Each batch has a separate thread. Competent (3 pts): Incorrect instance spawn for every thread. No Marks (0 pts): Did not attempt or the attempt was very incomplete.
###host_request_instance (II) (5 pts)###
Full Marks (5 pts): Each job is processed and returned to the user correctly. Competent (2.5 pts): Data is not being processed and returned to the user correctly. No Marks (0 pts): Did not attempt or the attempt was very incomplete.
- Assistant
Please provide the student's code submission so I can evaluate it according to the provided rubric.