Computer Science 225
Advanced Programming
Spring 2021, Siena College
Lecture 22: Memory with Threads
Date: Friday, May 14, 2021
Agenda
- Announcements
- Problem Set 6, due tonight, regular late policies apply
- Final Project
- a week to go
- don't forget the video demos
- live demos in class next Friday, with 5 projects you get a
hard limit of 10 minutes each
- Final exam info coming soon: exam is May 25, 11-1.
- Lab 9: Threads for Parallel Processing (in Canvas and GitHub), wrap up
soon, but no later than before your lab time next week
- Lab 10: Working with Regular Expressions (in Canvas and GitHub) due as
usual 24 hours before your lab, but most groups are done anyway
- Check out the Academic Showcase out in the tents after class
- Memory details for threaded programs
We will work together to draw a memory diagram for the version of
the ball tosser in the ThreadGraphicsPackage
program.
Submit your version in a document in your shared folder for 5
in-class exercise assignment points.
- First, we will draw the diagram (mostly for review) when the
program's run method is about to return.
- Next, we will draw the situation when the mouse has been
pressed at (100,100), dragged to (150,150), and is executing at
the end of the mouseReleased method.
- Finally, we will draw the situation when the mouse has been
pressed, dragged, and released again to create a second
BouncingGravityBall, the first BouncingGravityBall is
still in existence, and the paintComponent method had called
the first BouncingGravityBall's paint method and it is
in progress.