首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏用户4480853的专栏

    Structured Concurrency 发布于

    Abstract Structured Concurrency is avaiable as an incubator API in the JDK 19. Java Asynchronous Programming Full Tutorial with Loom and Structured Concurrency - JEP Café #13. JEP 428: Structured Concurrency (Incubator).

    44330编辑于 2023-10-21
  • 来自专栏dylanliu

    Parallelism Vs Concurrency

    网友对这两个词的解释也是各执一词,网友在Stack Overflow 上也问过这个问题What is the difference between concurrency and parallelism 二楼的网友给出了parallelism 和 concurrency 之间不同的关键特征:Parallelism: Independentability, Concurrency: Interruptability The term Concurrency refers to techniques that make programs more usable. Go 的发明者 Rob Pike 曾对这个做过一个 presentation Concurrency is not parallelism, 他将 concurrency 当做指导我们编程的准则,也就是他说的 Concurrency is about dealing with lots of things at once.

    44710发布于 2019-07-01
  • 来自专栏程序猿杜小头

    Optimistic Concurrency Control

    Optimistic Concurrency Control 乐观并发控制,即乐观锁。乐观锁是一种轻量级的实现并发控制的思想,乐观锁的实现一般依靠version版本号。 primary_term": 1 } 参考文档 https://www.elastic.co/guide/en/elasticsearch/reference/current/optimistic-concurrency-control.html

    85720编辑于 2022-12-01
  • 来自专栏GPUS开发者

    DAY93:阅读Coherency and Concurrency

    Coherency and Concurrency Simultaneous access to managed memory on devices of compute capability lower

    77720发布于 2018-12-25
  • 来自专栏用户9199536的专栏

    TOCS|Concurrency|Eraser

    Race Condition(竞争)指多线程同时访问一个资源时,由于访问顺序不同,导致的结果不同。这种并发性bug经常难以复现,又被称为海森bug(测不准)。Eraser,用于检测这种情况。翻译过程中附带重构。

    64820发布于 2021-11-22
  • 来自专栏用户9199536的专栏

    System|Concurrency|条件变量

    有界缓冲区问题,sender向buffer中添加数据,receiver从buffer中取出数据。以两个索引in,out作为未读取数据的上下边界,buf作为存储未读取数据的缓冲区。

    76750发布于 2021-11-22
  • 来自专栏专注数据中心高性能网络技术研发

    Chapter 7: The Concurrency API

    Use std::atomic for concurrency, volatile for special memory std::atomic使得多线程并发访问的顺序得到控制 std::volatile

    1.1K50发布于 2018-05-26
  • 来自专栏用户9199536的专栏

    System|Concurrency|单机事务

    实现Conflict serializability需要利用Concurrency Control (CC),暂时不写。而CC需要利用lock实现。

    32820发布于 2021-11-22
  • 来自专栏Postgresql源码分析

    Mysql参数innodb_thread_concurrency

    0 长求总 innodb_thread_concurrency - innodb_thread_concurrency是动态参数可以随时修改 - 64个活跃连接以内直接配0 - 高压场景需要从高到低测试 innodb_thread_concurrency。 2 野史 innodb_thread_concurrency innodb_thread_sleep_delay innodb_concurrency_tickets 这三个参数的配合使用就是这样的一个故事 3 官方使用建议 在官方文档上,对于innodb_thread_concurrency的使用,也给出了一些建议,如下: 如果一个工作负载中,并发用户线程的数量小于64,建议设置innodb_thread_concurrency 5 测试和总结 5.1 总结 innodb_thread_concurrency innodb_thread_concurrency是动态参数可以随时修改 64个活跃连接以内直接配0 高压场景需要从高到低测试

    2.4K11编辑于 2022-05-12
  • 来自专栏dylanliu

    Java concurrency in practice笔记 02 03

    线程安全性的核心是正确性,正确性的含义是如果类的行为与其规范完全一致。因此当多个线程访问某个类时,类的行为始终是安全的,这个类就是线程安全的,这个类也就是一个线程安全类。

    45440发布于 2019-07-01
  • 来自专栏码农桃花源

    深度阅读之《Concurrency in Go》

    说回正事,回到文章以及《Concurrency in Go》这本书。作为一个终身学习者,输入和输出是必不可少的。输入多了之后,会发现很多中文文章很难读,可能还有很多错漏之处。 并发(Concurrency)说的是代码,并行(Parallelism)说的是正在运行的程序。我们无法写出并行的代码,只能写并发的代码,并且期望它能并行执行。

    67910发布于 2020-09-10
  • 来自专栏WebJ2EE

    【Java Tutorials】:并发(Concurrency)——入门

    High Level Concurrency Objects 7.1. Lock Objects 7.2. Since version 5.0, the Java platform has also included high-level concurrency APIs. Executors are discussed with other high-level concurrency objects. 2.1. We'll discuss them in the section on High Level Concurrency Objects. 4. ://docs.oracle.com/javase/tutorial/essential/concurrency/index.html ----

    1.5K20发布于 2021-09-24
  • go 并发编程; go concurrency

      2. 使用锁,保证变量并发的正确性;由于没有接触过实际的工程场景,因此进行了简短的调研,下面是一些相关材料的记录;

    43620发布于 2021-08-10
  • 来自专栏行者常至

    014.golang 并发concurrency

    并发concurrency 很多人都是冲着 Go 大肆宣扬的高并发而忍不住跃跃欲试,但其实从 源码的解析来看,goroutine 只是由官方实现的超级“线程池”而已。 并发不是并行:Concurrency Is Not Parallelism 并发主要由切换时间片来实现“同时”运行,在并行则是直接利用 多核实现多线程的运行,但 Go 可以设置使用核数,以发挥多核计算机

    49940发布于 2018-08-15
  • 来自专栏码匠的流水账

    聊聊FluxFlatMap的concurrency及prefetch参数

    序 本文主要研究下FluxFlatMap的concurrency及prefetch参数 实例 @Test public void testConcurrencyAndPrefetch() { int concurrency = 3; int prefetch = 6; Flux.range(1,100) .log () .flatMap(i -> Flux.just(1,2,3,4,5,6,7,8,9,10).log(), concurrency , concurrency, prefetch); } final <V> Flux<V> flatMap(Function<? doc webflux-concurrency-model

    1.2K10发布于 2018-09-17
  • 来自专栏【腾讯云开发者】

    C++异步:structured concurrency实现解析!

    导语 | 本篇我们将介绍整个libunifex structure concurrency的实现思路,并结合一部分具体的cpo实现,对这部分的实现做深入分析。 中我们介绍了libunifex作为框架部分的concept设计,本篇我们将在这个基础上,继续介绍整个libunifex structure concurrency的实现思路,并结合一部分具体的cpo实现 一、Structured Concurrency 我们以一个简短的示例代码开启本章的内容: single_thread_context tcontext;int count = 0;schedule 因为用于产生一个sender,这类节点一般都出现在structured concurrency描述的最左侧,负责作为后续节点的数据来源,如最开始的示例代码中那样。 structured concurrency的设计是整个库的核心,理解了它,也能方便我们理解一些基础节点的实现,也为自己定制更多业务化的节点提供良好的基础。

    79820编辑于 2022-07-08
  • 来自专栏java一日一条

    Java 编程要点之并发(Concurrency)详解

    源码 本章例子的源码,可以在 https://github.com/waylau/essential-java 中 com.waylau.essentialjava.concurrency 包下找到。

    1K20发布于 2018-09-18
  • 来自专栏Greenplum

    PostgreSQL:effective_io_concurrency基准测试

    PostgreSQL:effective_io_concurrency基准测试 引言 正如在一篇近期的帖子中所提到的,我会定期检查我心爱的数据库的所有设置,今天我想和大家聊聊一个名为"effective_io_concurrency effective_io_concurrency 告知 PostgreSQL 我们的磁盘有多快(或慢查询)。 effective_io_concurrency 原文:[1] 设置 Linux主机上的PostgreSQL 9.6。硬件配置32个内核。 以下是在对比测试运行中磁盘受到的影响: 前6个峰值: effective_io_concurrency = 1 最近4个峰值: effective_io_concurrency = 100 此外,IOPS 原文来自于: PostgreSQL_effective_io_concurrency_benchmarked[2] 引用链接 [1] effective_io_concurrency 原文:: https

    23610编辑于 2025-09-11
  • 来自专栏用户9199536的专栏

    System|Concurrency|分布式事务

    在分布式系统中,为了保证事务仍然具备原子性和一致性,我们引入了多种机制。本文配套MIT yfs lab进行最佳。

    48020发布于 2021-11-22
  • 来自专栏c++与qt学习

    CMU 15-445 -- Index Concurrency Control - 06

    CMU 15-445 -- Index Concurrency Control - 06 引言 本系列为 CMU 15-445 Fall 2022 Database Systems 数据库系统 [卡内基梅隆 ---- Concurrency Control 通常我们会从两个层面上来理解并发控制的正确性: Logical Correctness: 我是否能看到我应该要看到的数据? Mode: 同一时间只有单个线程可以访问 针对相同的数据,如果获取前已经有别的线程获得任何 mode 的 latch,新的线程就无法获取 write mode 的 latch ---- B+ Tree Concurrency

    31620编辑于 2023-10-11
领券