Computer Science 225
Advanced Programming
Spring 2022, Siena College
Lecture 13: Animation and Threads
Date: Friday, March 18, 2022
Agenda
- Announcements
- Problem Set 5 now extended to be due the Tuesday evening
when you return
- Lab 7: Recursive Graphics and Graphics Objects (in Canvas and GitHub) -
don't worry about it until you get back
- Mid-semester grades
- Looking ahead: Exam 2, Final Project
- Displaying images
- Threads to create additional objects
- In-class exercise (5 points)
Let's make the SnowScene example have a
shifting wind.
Accept the repository using the link in the "InClass 13"
assignment in Canvas. This repository that has a modified version
of the SnowScene example. We will modify the program so the
snowflakes all change x velocities due to a shifting wind.
- Dangers of concurrency (just a quick intro)
- Enjoy the first normal spring break Siena's had since 2019!
Examples
- SnowScene: more threads and importing an image
- ATMConcurrency: demonstration of race conditions and the synchronized keyword