首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Miigon's Blog

    [mit6.s081] 笔记 Lab7: Multithreading | 多线程

    : exit after 100 thread_schedule: no runnable threads Using threads (moderate) 分析并解决一个哈希表操作的例子内,由于 race-condition : 0 keys missing 200000 gets, 10.222 seconds, 19566 gets/second 可以发现,多线程执行的版本也不会丢失 key 了,说明加锁成功防止了 race-condition 所有线程继续执行;屏障轮数 + 1; 「将已进入屏障的线程数量增加 1,然后再判断是否已经达到总线程数」这一步并不是原子操作,并且这一步和后面的两种情况中的操作「睡眠」和「唤醒」之间也不是原子的,如果在这里发生 race-condition

    1.2K40编辑于 2022-10-27
  • 来自专栏Phoenix的Android之旅

    重新认识观察者模式

    The worst result of any * potential race-condition here is that: * 1) a newly-added

    37720发布于 2018-08-07
  • 来自专栏Miigon's Blog

    [mit6.s081] 笔记 Lab6: Copy-on-write fork | fork 懒拷贝

    . // pa will be memset multiple times if race-condition occurred. 这里的锁的作用是防止竞态条件(race-condition)下导致的内存泄漏。

    1K10编辑于 2022-10-27
  • 来自专栏孟君的编程札记

    观察者模式浅析

    The worst result of any * potential race-condition here is that: * 1) a newly-added

    57530发布于 2019-09-03
  • 来自专栏授客的专栏

    Python 客户端类库之paho-mqtt学习总结

    is called with a mid not present in unacked_publish") print("This is due to an unavoidable race-condition unlikely (because on_publish() will be called after a network round-trip),") print(" this is a race-condition that COULD happen") print("") print("The best solution to avoid race-condition is using

    2.1K10编辑于 2024-11-21
  • 来自专栏Java学习录

    Hystrix熔断器

    initialize // Create and add to the map ... use putIfAbsent to atomically handle the possible race-condition

    66510发布于 2019-11-12
  • 来自专栏ImportSource

    并发编程-原子性

    在并发编程中,这种由于不恰当的执行时序而出现不正确的结果是非常要命的,以至于它有了一个名字叫做:竞态条件(race-condition)。

    1.5K110发布于 2018-04-03
  • 来自专栏山行AI

    hystrix工作原理及源码解析

    If another thread was going through this code at the same time a race-condition could have // caused

    1.8K40发布于 2019-06-28
  • 来自专栏爱撸猫的杰

    SpringCloud-Hystrix原理

    If another thread was going through this code at the same time a race-condition could have // caused

    1.6K31发布于 2020-02-14
  • 来自专栏java、Spring、技术分享

    Hystrix源码解析

    initialize // Create and add to the map ... use putIfAbsent to atomically handle the possible race-condition

    2.2K31发布于 2018-09-11
  • 来自专栏小工匠聊架构

    观察者模式

    The worst result of any * potential race-condition here is that: * 1) a newly-added

    1K40发布于 2021-08-16
  • 来自专栏个人技术笔记

    微服务组件--限流框架Spring Cloud Hystrix详解

    If another thread was going through this code at the same time a race-condition could have

    5.3K21编辑于 2022-10-30
  • 来自专栏Pulsar-V

    C++/CLI(二)Mono C++/CLI Native调用和P/Invoke调用

    GC-Safe P/Invoke code There's one problem with the wrapper code described above: a race-condition between

    4.3K30发布于 2019-04-01
领券