[SOLVED] COMP2560 Assignment4

35.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product

Rewrite your solution to Assignment 2 with changed requirements on parallel execution.

Requirement from previous assignment:

  • The parent process waits for the child process to terminate before creating the next.

Replacement:

  • The parent process will not wait for the child process to terminate before creating the next process.
  • The processes will do the calculation in parallel. Add some sleep time to simulate larger calculation.
  • The processes will write the data into the image file sequentially. This is coordinated by the parent using signals.
  • You can only use signal for inter-process communication.

Marking Scheme:

0.5 logically clear

0.5 follow all instructions and correctly use signals

0.5 successfully compile

0.5 pass all tests

 

 

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.