使用硬件加速Tokio - 戴翔Tokio Core Queue-Based Modules in Tokio • Channel • Scheduler • Tokio uses Channel for communication between threads (incl. pthread, co-routines). • Channel allows a unidirectional flow of information Receiver. • Channel Type: SPSC, SPMC, MPMC, MPSC. Senders Receive Senders Senders Receive Receivers Perf Gaps: CAS(Compare And Swap) can't perfectly scale with core count. Tokio Channel • Each memory/cache latency • No CPU cycles DLB-Assist Channel Intro Hardware Senders Receive Senders Senders Receive Receivers Channel/Queue DLB-Assist Channel removes the penalty of CAS to achieve a safety-guaranteed0 码力 | 17 页 | 1.66 MB | 1 年前3
基于 Rust Arrow Flight 的物联网和时序数据传输及转换工具 霍琳贺https://crates.io/crates/tokio • Job Scheduler: https://crates.io/crates/tokio-cron-scheduler • MPMC Channel: https://crates.io/crates/flume • Web Service: • Framework: https://crates.io/crates/actix-web blocking code Tokio - Notes • 使用非阻塞或并发 / 异步数据结构 • 使用异步锁和异步 Channel 。 • 使用 spawn_blocking 提交耗时任务 • C FFI 调用时,要关注上下文的线程安全性。 • 多个运行时之间使用 Channel 通信,降低锁使用范围。 Tokio - Graceful Stop • futures::future::Abortable 内使用 tokio::select! 宏执行相关取消操作。 • tokio::signal::ctrl_c 接收 Ctrl-C 信号,可用于最终程序退出时的取 消操作。 • 谨慎处理任务中 channel 的结束信号。 • cancel vs. abort : Cancel 处理按预期退出, Abort 要保证安全退 出。 • 处理非正常退出(断电、 kill -9 等),保证系统安全性。0 码力 | 29 页 | 2.26 MB | 1 年前3
nativescript-new-looper-vantoll.pptxDeveloper Experts ? • Slack channel standouts ? • Stack Overflow contributors ? • Contest winners! ? Community starts with Engineering ? NativeScript Developer Experts ? Slack channel stats ? Join Join us! http://tinyurl.com/nativeScriptSlack Slack channel standouts ? 1,900+ members! With Top Contributors: Join us! http://tinyurl.com/nativeScriptSlack - 5) ? sean (38) - 4) ? walkerrunpdx0 码力 | 36 页 | 10.78 MB | 1 年前3
Finding Bugs using Path-Sensitive Static AnalysisGábor Horváth Gabor.Horvath@microsoft.com @XazaxHunWelcome to CppCon 2021! Join #visual_studio channel on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions explicit can help analysis, improve readabilityEnjoy the rest of the conference! Join #visual_studio channel on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions0 码力 | 35 页 | 14.13 MB | 6 月前3
whats new in visual studioProduct Team, Microsoft @VisualC https://aka.ms/cpp Welcome to CppCon 2021! Join #visual_studio channel on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions Code CppCon 2021 Happy Coding! Thank you Enjoy the rest of the conference! Join #visual_studio channel on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions0 码力 | 42 页 | 19.02 MB | 6 月前3
C++20's Natsuhara@microsoft.com Software Engineer, Visual C++ LibrariesWelcome to CppCon 2021! Join #visual_studio channel on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions ever could have imagined :)53 Questions?Enjoy the rest of the conference! Join #visual_studio channel on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions0 码力 | 55 页 | 8.67 MB | 6 月前3
Golang Warsaw #54com/golangpoland/meetup_golang_warsaw Job Board: facebook.com/groups/golangpolandjobsQuestions? Join channel #poland on gophers.slack.com. https://invite.slack.golangbridge.org/0 码力 | 7 页 | 1.66 MB | 6 月前3
Golang Warsaw #53com/golangpoland/meetup_golang_warsaw Job Board: facebook.com/groups/golangpolandjobsQuestions? Join channel #poland on gophers.slack.com. https://invite.slack.golangbridge.org/0 码力 | 8 页 | 1.63 MB | 6 月前3
Golang Warsaw #55com/golangpoland/meetup_golang_warsaw Job Board: facebook.com/groups/golangpolandjobsQuestions? Join channel #poland on gophers.slack.com. https://invite.slack.golangbridge.org/0 码力 | 7 页 | 1.34 MB | 6 月前3
Introductiontopics 3. Your experience building your software Maybe one of your work colleagues?Questions? Join channel #poland on gophers.slack.com. https://invite.slack.golangbridge.orgAgenda 1. You need Event Mesh0 码力 | 8 页 | 27.61 MB | 5 月前3
共 16 条
- 1
- 2













