XJTLU Entrepreneur College (Taicang) Cover Sheet
Module code and Title | DTS205TC High Performance Computing | |
School Title | School of AI and Advanced Computing | |
Assignment Title | Lab 2 | |
Submission Deadline | April 10th, 2023 @ 23:59 | |
Final Word Count | N/A | |
If you agree to let the university use your work anonymously for teaching and learning purposes, please type “yes” here. | ||
Q1703105484
I certify that I have read and understood the University’s Policy for dealing with Plagiarism, Collusion and the Fabrication of Data (available on Learning Mall Online). With reference to this policy I certify that:
- My work does not contain any instances of plagiarism and/or collusion. My work does not contain any fabricated data.
By uploading my assignment onto Learning Mall Online, I formally declare that all of the above information is true to the best of my knowledge and belief.
Scoring – For Tutor Use | ||||||
Student ID | ||||||
Stage of Marking | Marker Code | Learning Outcomes Achieved (F/P/M/D) (please modify as appropriate) | Final Score | |||
A | B | C | ||||
1st Marker – red pen | ||||||
Moderation – green pen | IM Initials | The original mark has been accepted by the moderator (please circle as appropriate): | Y / N | |||
Data entry and score calculation have been checked by another tutor (please circle): | Y | |||||
2nd Marker if needed – green pen | ||||||
For Academic Office Use | Possible Academic Infringement (please tick as appropriate) | |||||
Date Received | Days late | Late Penalty |
| Total Academic Infringement Penalty (A,B, C, D, E, Please modify where necessary) | ||
| ||||||
| ||||||
| ||||||
|
DTS205TC High Performance Computing Lab 2
Deadline: April 10th, 2023 @ 23:59 (UTC+8 Beijing) Percentage in final mark: 10%
Maximum score: 20 marks Learning outcomes assessed: A, C
Late policy: 10% of the total marks available for the assessment shall be deducted from the assessment mark for each working day after the submission date, up to a maximum of five working days.
Risks:
- Please read the coursework instructions and requirements carefully. Not following these instructions and requirements may result in loss of marks.
- Plagiarism results in award of ZERO mark.
- The formal procedure for submitting coursework at XJTLU is strictly followed. Submission link on Learning Mall will be provided in due course. The submission timestamp on Learning Mall will be used to check late submission.
Overview
Chatting is a usual web application. We simulate two chatters, A and B, with program(s). Among them, A reads the user input and sends it to B; B reverses the message and converts it to uppercase, and prints it to the screen. The basic process is as follows:
message = '' def A(): global message message = input() def B(): global message message = message[::-1].upper() if name == ' main ': A() B() print(message) |
- Place A and B in different sub-processes, and use the SharedMemory of Python's multiprocessing module to transmit the message; (5 marks)
- Place A and B in different sub-processes, and use the Pipe of Python's multiprocessing module to transmit the message; (5 marks)
- Place A and B in different sub-processes, and use an independent UDP server to transmit the message; (5 marks)
- Place A and B in different sub-processes, and use an independent TCP server to transmit the message. The TCP server also has two sub-processes, each of which listens to a unique port and interact with A or B. The TCP server uses Pipe to forward the message between its two sub- processes. (5 marks)
Note: The practice is designed to deepen your understanding on networks. Do not call off-the-shelf libraries.
Appendix
Specific Marking Scheme
The tasks in this assessment can be divided into two categories:
-
- Programs: all.
Criteria(%) | Exemplary (100) | Good (75) | Satisfactory (50) | Limited (25) | Very Limited (0) |
Programs | Demonstrated correctly implemented code that produces correct output. Excellent coding quality follows best practices. | The program runs correctly and gives the expected results. However, special cases are not fully considered, or the program performs redundant calculations. | Program basically works correctly for major functionality, however, with some conceptional problems. | The program implements some minor functionality, or incorrectly implements major functionality. There is a certain degree of misunderstanding about the requirements of the questions. | Program works incorrectly with limited attempt or irrelevant to the task. |
Charts Presentation & Analysis | Excellent quality of report with clear structure, clear logic, concise writing, pleasing visual aids. | Most of the results in the chart are correct, but there is a certain degree of sloppy or wordy in the overview and analysis. | Moderate quality of report with basic structure, where writing and visual aids can be improved. | Only some of the results in the chart are correct, or some of them are not filled in. The analysis of the results was obviously biased. | Limited or no attempt of report. |