COMP6991 22T3 — Lecture 14 Week 8 Wednesday











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=h_HT1riIw8I

Course website: https://cgi.cse.unsw.edu.au/~cs6991/2... • Discuss this lecture on the course forum! • https://cgi.cse.unsw.edu.au/~cs6991/f... • [0:00] Chapters • [5:30] Intro: Concurrency II • [8:20] Recap from last lecture • | [8:30] Scoped threads documentation • | [14:30] Send and Sync • [17:20] Assignment 2 • [19:38] Move closures • | [20:00] Example 1 • | [21:20] Macros can obscure lifetime issues • | [23:50] Desugaring closure • | [25:40] Example 2: borrow of owned string in closure • | [29:00] How does move help? • | [32:20] Moving one variable and borrowing another • | [34:20] Test if a function implements FnMut/Once • | [35:50] Move closures can implement FnMut/Fn • [40:30] Poisoning • | [42:10] LockResult can return PoisonError • | [45:20] Clear poison • | [46:55] Parking lot package • | [48:30] Poison error into inner • [49:55] RwLock • | [53:50] Deadlocks, priority policy • | [58:25] Example of requesting multiple read locks • | [1:00:20] Solution: create outer and inner functions • [1:02:50] Break • [1:08:50] Mutex deadlock • [1:11:52] T must be Send in Mutex • | [1:15:00] Mem swap • [1:18:25] Channels, mpsc • | [1:23:45] Example 1: send and receive one message • | [1:28:35] Example 2: sending two messages • | [1:30:00] Sender implements Clone • | [1:32:00] Sending enums • | [1:33:50] Sync channel, bounded channel, rendezvous channel • | [1:40:00] multi-consumer version, crossbeam crate • [1:42:48] Rayon I • [1:44:05] Parking lot vs std • [1:47:15] Rayon II • | [1:51:00] C example • | [1:52:03] Rayon documentation • | [1:53:28] Map with Rayon • | [1:54:35] Example: using Rayon • [1:57:15] Parallel folding • [1:59:00] End of lecture • [1:59:20] Niko Matsakis • [2:00:25] Preview for rest of term, ideas for W10

#############################









New on site
Content Report
Youtor.org / YTube video Downloader © 2025

created by www.youtor.org