SYSC 3303 Study Guide - Java Syntax, Uniprocessor System, Concurrent Computing

85 views5 pages

Document Summary

1 mark for no; 2 marks for why not: no, a uniprocessor can only execute one thread at a time, and for true concurrency we need to be able to execute multiple threads simultaneously. Question b [6 marks: identify each of the two types of thread synchronization discussed in the lectures. 2 marks each: mutual exclusion: synchronized methods (or synchronized keyword in method description) condition synchronization: wait(), notify(), and notifyall() [1 mark for wait; 0. 5 marks each for notify and notifyall] o. Question c [15 marks: assuming no errors, what packet (type and block number) is the correct response to: [9 marks, client or server receives data packet block number i Ack block i [2 marks: client or server receives ack packet block number i Data block i+1 [2 marks]; unless data i was the last block in which case we do not respond [1 mark] Ack block 0 [2 marks: server receives a rrq.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents