class: title # Event-Based Concurrency ## CSC 213 – November 14, 2025 --- # Agenda for Today 1. Department Events 2. Upcoming Work 3. Event-Based Concurrency 4. Wrap Up --- # Department Events ## Faculty Candidate Talks .indent[ Happening now! Watch for emails about timing and topics. ] *To receive 0.25% extra credit, send an email to let me know you attended no more than 48 hours after the event.* --- class: section, blue # Upcoming Work --- # Lab: Sudoku Solver **Due:** Friday, November 14th by 11:59pm **Late Deadline:** Friday, November 21st by 11:59pm ## Q&A ***What are some good debugging strategies?*** Try turning off parts of your kernel, or run the kernel for just one iteration before returning the boards to the CPU to print with `print_boards`. You can learn a lot by looking at home the kernel fills in cells one round at a time. --- # Reading Journal: Lampson's Hints for System Design **Due:** Monday, November 17th one hour before class Butler Lampson—Turing Award winner and accomplished system builder—has some hints for building systems. Read and reflect on those hints to prepare for our end-of-semester project. --- class: section, blue # Event-Based Concurrency --- # Discussion: Models of Concurrency **Questions for think, pair, share:** 1. What is the difference between event-based concurrency and the thread-based models we've learned about so far? 2. Describe a scenario where event-based concurrency could be used instead of threads. 3. Why might you prefer to use event-based concurrency instead of threads in some situations? *Start by thinking of answers on your own. I will let you know when to start discussion.* --- class: section, gray # A Simple Networking Example --- # Discussion: Post Demo Reflection **Questions for think, pair, share:** 1. How is event-based concurrency a form of *concurrency* if it doesn't involve computing in parallel? 2. In scenarios where you can use either threads or event-based concurrency, which do you prefer? Why? *Start by thinking of answers on your own. I will let you know when to start discussion.* --- class: section, blue # Wrap Up --- # Reminders ## Lab The Sudoku lab is due tonight. Make sure you've arranged times to work with your group, and reserve times during office hours and/or attend mentor sessions this week if you need help. ## Assignment Our first reading journal assignment is out now, and is due on Monday before class. ## Reading - **Hints for System Design** (Butler W. Lampson)