SYSC 3303 Lecture Notes - Lecture 13: Uniprocessor System, Finite-State Machine, Program Counter

80 views9 pages

Document Summary

Error simulator picks a test case: purpose of error simulator is being able to test a particular case on demand, test one thing at a time, choosing which packet number to test on. Pass tid into send/receive function: can"t thro(cid:449) error e(cid:448)en if packet is really delayed, ex. Expecting data 7 but get data 2, we send ack 2. If we got data 9 then error code. Expecting ack 5 but get ack 3, we ignore it. If we get ack 10 then error code 4. Another thread invoking notify() or notifyall() makes the waiting thread runnable: thread interruption (not a state): wait() and sleep() will return early, throwing an. I/o blocked: threads block when i/o is requested, become runnable when the i/o is complete: thread life cycle, ready to run vs. running. By running off the end of its run() method; by throwing an exception that propagates beyond its run() method.

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
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents