Concurrency in Rust## 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 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 each other. ## Why concurrency?  ## Getting our feet wet // What does this print? int main() { int pid = fork(); p0 码力 | 43 页 | 648.31 KB | 2 年前3
Concurrency## Back To Basics Concurrency ## +23 ## DAVID OLSEN ## 3 ## BACK TO BASICS: CONCURRENCY David Olsen, Software Engineer, NVIDIA CppCon, October 5, 2023  and concurrency is a software problem (think time-sharing, but also Intel’s “hyperthreading”). ## Why does C++0 码力 | 58 页 | 333.56 KB | 1 年前3
Back to Basics: Concurrency## +21 ## Back to Basics: Concurrency ## MIKE SHAH 2021 October 24-29 ## Please do not redistribute slides without prior permission ## Back to Basics: Concurrency Mike Shah, Ph.D. @MichaelShah | mshah about the free lunch being over for programmers? In this talk we provide a gentle introduction to concurrency with the modern C++ std::thread library. We will introduce topics with pragmatic code examples locks, and showing how these programming primitives enable concurrency. In addition, we will show the common pitfalls to be aware of with concurrency: data races, starvation, and deadlock (the most extreme0 码力 | 141 页 | 6.02 MB | 1 年前3
Concurrency Patterns I## +21 ## Concurrency Patterns ## RAINER GRIMM 20 21 October 24-29 ## Definition "Each pattern is a three-part rule, which expresses a relation between a certain context, a problem, and a solution Interaction 7. Solution 8. Example 9. Consequenses 10. Related pattern 11. Known usages ## Concurrency Patterns ## Pattern-Oriented Software Architecture (Volume 2 and 4)  ## Concurrency Patterns ## Synchronization Patterns Concurrent Architecture ## Dealing with Sharing ■ Copied0 码力 | 39 页 | 1.14 MB | 1 年前3
Concurrency Patterns in C## Concurrency Patterns in Go Artsiom Bukhautsou Senior Backend Engineer @Nord Security ## Agenda 1. Fan-in 2. Fan-out 3. Pipeline 4. Fan-in, Fan-out, Pipeline 5. Tee 🌱 ## Why learn these patterns0 码力 | 20 页 | 1.35 MB | 1 年前3
Coroutines and Structured Concurrency in Practice## +24 ## Coroutines and Structured Concurrency in Practice ## DMITRY PROKOPTSEV ## Challenges when onboarding coroutines A lot of existing code mostly callback-based A custom-built I/O event loop object lifetime management • Easier error propagation But we need some structure ## Structured concurrency And why we care ## A typical async framework class Task { ... } represents a unit of background co_return visit(identity{}, v); } } ## Structured concurrency Tasks naturally form a "call tree" • coroutines • leaf awaitables (sleeping, I/O, etc)0 码力 | 103 页 | 1.98 MB | 1 年前3
Sender Patterns to Wrangle Concurrency in Embedded Devices## Sender Patterns to Wrangle Concurrency in Embedded Devices ## Michael Caisse michael.caisse@intel.com @MichaelCaisse  Ben the count one digit at a time. 3. When done, yell "End of Line" ## async/concurrency ## async/concurrency  Sender Video Sponsorship Provided By millennium think-cell ## Employing Senders and Receivers to Tame Concurrency in Embedded Systems Michael Caisse  Martin Geisler ## Contents Welcome to Comprehensive Rust 👑👑 1 Running the Course 13 1.1 Course 2.1 The Rust Ecosystem 18 2.2 Code Samples in This Training 19 2.3 Running Code Locally with Cargo 20 I Day 1: Morning 22 3 Welcome to Day 1 23 4 Hello, World 25 4.1 What is Rust? 25 4.2 2 Benefits of Rust 26 4.3 Playground 26 5 Types and Values 28 5.1 Hello, World 28 5.2 Variables 29 5.3 Values 29 5.4 Arithmetic 30 5.5 Type Inference 30 5.6 Exercise: Fibonacci 31 5.60 码力 | 378 页 | 1009.46 KB | 2 年前3
Comprehensive RustComprehensive Rust  Martin Geisler ## 차례 Comprehensive Rust 에 오신 것을 환영합니다 👑 1 강의전행 12 1.1 강의구성 13 1.2 단축키 15 1 강의에서의 코드샘플 18 2.3 로컬 환경의카고 19 I 1 일차 오전 20 3 1 일차개요 21 4 Hello World! 23 4.1 러스트란? 23 4.2 Rust 의이점 23 4.3 플레이그라운드 24 5 타입 및값 26 5.1 Hello World! 26 5.2 변수 27 5.3 값 27 5.4 연산 28 5 30.6 안전하지 않은 트레잇구현하기 182 30.7 FFI 래퍼 183 30.7.1 해답 185 IX 안드로이드 189 31 Welcome to Rust in Android 190 32 설치 191 33 빌드규칙 192 33.1 러스트라이너리 193 33.2 러스트라이브러리 193 34 AIDL0 码力 | 368 页 | 1.29 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Concurrency in RustRustConcurrencyData RacesFuturesparallelismMutexesatomic operations并发数据竞争mutex条件变量静态初始化并发编程线程同步原语控制流并行性能Concurrency PatternsThread-Specific StorageMonitor ObjectScoped LockingFutureFan-inFan-outPipelineTeecoroutinesstructured concurrencycallback-basedI/O event loopobject lifetime managementSender PatternsEmbedded DevicesStructured ConcurrencyDebuggingCargo类型系统变量和值内存安全所有权Playground













