03. Go语言最差实践 - 李俱顺SETTING TIMEOUT Go Concurrency Patterns: Context https://blog.golang.org/context #3 OVERREACHING FOR CONCURRENCY OVERREACHING FOR CONCURRENCY https://github.com/system-pclub/go-concurrency-bugs OVERREACHING FOR CONCURRENCY Concurrency is Hard. • CSP does not change that. https://medium.com/oreillymedia/why-concurrency-is-hard-f93104cad54b OVERREACHING FOR CONCURRENCY OVERREACHING FOR CONCURRENCY OVERREACHING OVERREACHING FOR CONCURRENCY Single thread is still powerful & relaxed. OVERREACHING FOR CONCURRENCY https://www.usenix.org/system/files/conference/hotos15/hotos15-paper-mcsherry.pdf Scalability! But0 码力 | 38 页 | 3.27 MB | 1 年前3
可视化学习 Go 并发编程简单来说,并发是一种构造程序的方式 Concurrency is not Parallelism Slide (http://talks.golang.org/2012/waza.slide) 1. 并发很强大 2. 并发帮助实现并行,使并行(扩展等)变得容易 3. 并发不是并行,并发重点是架构,并行重点是执行,两者不同,但相关。 04:22 / 31:21 可视化 并发(Concurrency) & 并行(Parallelism) 并行(Parallelism) 一图胜千言! 并行(PARALLELISM) 这是并行 (/2017/go-concurrency-visualize/parallelism.html) 并发(CONCURRENCY) 这是并发 (/2017/go-concurrency-visualize/pingpong36.html) 为什么要关注并发?当今是多核的时代,并发的世界 多核的时代 并发编程并不容易,但 // 发送 42 给 channel ch <- 42 }() // 从 channel 读取 <-ch } Go并发可视化 (/2017/go-concurrency-visualize/helloworld.html) 2. 计时器 func tick(d time.Duration) <-chan int { c := make(chan0 码力 | 29 页 | 1.48 MB | 1 年前3
Comprehensive Rust(简体中文) 202412你需要设置一个新 crate,下载所需的依赖项,做好课前准备。然后,你可以将示例复制/粘贴到 src/main.rs 中,以便对以下代码进行实验: cargo init concurrency cd concurrency cargo add tokio --features full cargo run 课程形式 本课程的互动性非常强,建议你以问题驱动探索 Rust! 1.2 键盘快捷键 (i32, i32)) { let (left, right) = tuple; println!("left: {left}, right: {right}"); } 40 • The patterns used here are ”irrefutable”, meaning that the compiler can statically verify that the value on the any value, hence why we can also use let to declare a single variable. • Rust also supports using patterns in conditionals, allowing for equality comparison and destructuring to happen at the same time.0 码力 | 359 页 | 1.33 MB | 10 月前3
Kotlin 1.9.10 官方文档 中文版
downsides: The sweeping order lacks memory locality and often results in scattered memory access patterns, leading to potential performance issues. Linked lists require additional memory for each object kotlinx.coroutines library. This blocked the adoption of Kotlin Multiplatform Mobile because concurrency limitations created problems with sharing Kotlin code between iOS and Android platforms. The for Kotlin/Native. Learn more about 注解类的实例化. 与 Swift async/await 互操作:返回 Void 而不是 KotlinUnit Concurrency interoperability with Swift async/await is Experimental. It may be dropped or changed at any time0 码力 | 3753 页 | 29.69 MB | 1 年前3
Kotlin 官方文档中文版 v1.9downsides: The sweeping order lacks memory locality and often results in scattered memory access patterns, leading to potential performance issues. Linked lists require additional memory for each object kotlinx.coroutines library. This blocked the adoption of Kotlin Multiplatform Mobile because concurrency limitations created problems with sharing Kotlin code between iOS and Android platforms. The new for Kotlin/Native. Learn more about 注解类的实例化. 与 Swift async/await 互操作:返回 Void 而不是 KotlinUnit Concurrency interoperability with Swift async/await is Experimental. It may be dropped or changed at any time0 码力 | 2049 页 | 45.06 MB | 1 年前3
httpd 2.4.23 中文文档benefits are lost. Compile Time Configuration Issues Choosing an MPM Apache 2.x supports pluggable concurrency models, called Multi- Processing Modules (MPMs). When building Apache, you must choose an MPM to option, the atomic operations will be more efficient (allowing for lower CPU utilization and higher concurrency), but the resulting executable will run only on UltraSPARC chips. Linux on x86 By default, APR per-directory context (see below), the URL path relative to that per-directory context. Subsequent patterns are matched against the output of the last matching RewriteRule. What is matched? In VirtualHost0 码力 | 2559 页 | 2.11 MB | 1 年前3
httpd 2.4.20 中文文档benefits are lost. Compile Time Configuration Issues Choosing an MPM Apache 2.x supports pluggable concurrency models, called Multi- Processing Modules (MPMs). When building Apache, you must choose an MPM to option, the atomic operations will be more efficient (allowing for lower CPU utilization and higher concurrency), but the resulting executable will run only on UltraSPARC chips. Linux on x86 By default, APR per-directory context (see below), the URL path relative to that per-directory context. Subsequent patterns are matched against the output of the last matching RewriteRule. What is matched? In VirtualHost0 码力 | 2533 页 | 2.09 MB | 1 年前3
httpd 2.4.17 中文文档benefits are lost. Compile Time Configuration Issues Choosing an MPM Apache 2.x supports pluggable concurrency models, called Multi- Processing Modules (MPMs). When building Apache, you must choose an MPM to option, the atomic operations will be more efficient (allowing for lower CPU utilization and higher concurrency), but the resulting executable will run only on UltraSPARC chips. Linux on x86 By default, APR per-directory context (see below), the URL path relative to that per-directory context. Subsequent patterns are matched against the output of the last matching RewriteRule. What is matched? In VirtualHost0 码力 | 2455 页 | 1.88 MB | 1 年前3
httpd 2.4.18 中文文档benefits are lost. Compile Time Configuration Issues Choosing an MPM Apache 2.x supports pluggable concurrency models, called Multi- Processing Modules (MPMs). When building Apache, you must choose an MPM to option, the atomic operations will be more efficient (allowing for lower CPU utilization and higher concurrency), but the resulting executable will run only on UltraSPARC chips. Linux on x86 By default, APR per-directory context (see below), the URL path relative to that per-directory context. Subsequent patterns are matched against the output of the last matching RewriteRule. What is matched? In VirtualHost0 码力 | 2467 页 | 1.89 MB | 1 年前3
httpd 2.4.25 中文文档benefits are lost. Compile Time Configuration Issues Choosing an MPM Apache 2.x supports pluggable concurrency models, called Multi- Processing Modules (MPMs). When building Apache, you must choose an MPM to option, the atomic operations will be more efficient (allowing for lower CPU utilization and higher concurrency), but the resulting executable will run only on UltraSPARC chips. Linux on x86 By default, APR does NOT match (ie, the negation matches), there are no contents for the groups. Thus, if negated patterns are used, you cannot use $N in the substitution string! The Substitution of a rewrite rule is the0 码力 | 2573 页 | 2.12 MB | 1 年前3
共 262 条
- 1
- 2
- 3
- 4
- 5
- 6
- 27













