DTS205TC High Performance Computing Lab 2

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

  • Category A

Total Academic Infringement Penalty (A,B, C, D, E, Please modify where necessary)                                         

  • Category B
  • Category C
  • Category D
  • Category E

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)

Among them, we use a global variable to achieve message passing between A and B. You need to modify the program to ensure that the program still exhibits the same visible behavior to the user, but its internal implementation can be differen
  1. Place A and B in different sub-processes, and use the SharedMemory of Python's multiprocessing module to transmit the message; (5 marks)
  2. Place A and B in different sub-processes, and use the Pipe of Python's multiprocessing module to transmit the message; (5 marks)
  3. Place A and B in different sub-processes, and use an independent UDP server to transmit the message; (5 marks)
  4. 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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值