logo资料库

Rust并发编程.pdf

第1页 / 共43页
第2页 / 共43页
第3页 / 共43页
第4页 / 共43页
第5页 / 共43页
第6页 / 共43页
第7页 / 共43页
第8页 / 共43页
资料共43页,剩余部分请下载后查看
Concurrency in Rust Alex Crichton
What’s Rust? Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.
Concurrency? Rust? Libraries Futures
What’s concurrency? In computer science, concurrency is a property of systems in which several computations are executing simultaneously, and potentially interacting with each other.
Why concurrency?
Getting our feet wet // What does this print? int main() { int pid = fork(); printf("%d\n", pid); }
Concurrency is hard! • Data Races • Race Conditions • Deadlocks • Use after free • Double free Exploitable!
Concurrency? Rust? Libraries Futures
分享到:
收藏