首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏C++核心准则原文翻译

    C++核心准则CP.1: 设想你的代码​会成为多线程程序的一部分

    computation(x); } return cached_result; } Although cached_computation works perfectly in a single-threaded This refactoring essentially delegates the concern upward to the caller: a single-threaded program might In this specific example, refactoring for thread-safety also improved reusability in single-threaded It's not hard to imagine that a single-threaded program might want two ComputationCache instances for Provide two implementations: one for single-threaded environments and another for multi-threaded environments

    45910发布于 2020-07-02
  • 来自专栏szhshp 的第四边境中转站

    Server-Side Languages Comparation

    AJAX, JSON, HTTP Server are easy to use Single-threaded (will create multipld-node process) High compatibility operation, asynchronos programming is hard To understand Not suitable for large and complex Web Apps Single-threaded

    38660编辑于 2022-09-21
  • 来自专栏机器人课程与技术

    ROS2机器人编程简述humble-第二章-Controlling the Iterative Execution .3.1

    rclcpp::spin_some(node); 参考官方文档如下: rclcpp::spin Create a default single-threaded executor and spin the rclcpp::spin_some Create a default single-threaded executor and execute any immediately available work

    1.2K20编辑于 2023-02-01
  • 来自专栏涛的程序人生

    Go语言生命游戏 GameofLife GOL

    We suggest starting with a single-threaded implementation that will serve as a starting point in subsequent Test your serial, single-threaded code using go test -v -run=TestGol/-1$.

    1.1K10编辑于 2021-12-06
  • 来自专栏ADAS性能优化

    SS galaxy s9 Snapdragon 845VS Exynos9810性能比较-System Performance

    reaches the 2314MHz state of the M3 cores – which according to the SPEC benchmarks is around the maximum single-threaded completely invalidates the benefit of such a mechanism in the first place as the one use-case where single-threaded

    60110编辑于 2022-05-13
  • 来自专栏C++核心准则原文翻译

    C++核心准则CP.31:在线程之间以传值方式传递少量数据,而不是传递引用或指针

    On the other hand, the implementation of modify1 is exactly as we would have written it for single-threaded

    1.1K10发布于 2020-07-14
  • 来自专栏Eureka的技术时光轴

    RAD Studio Static Runtime Libraries c++builder去掉依赖cc3260mt

    library cp32mti.lib VCL-compliant import library for multithreaded C RTL cc3260mt.dll cw32.lib RTL single-threaded

    1.1K20发布于 2019-07-24
  • 来自专栏C++核心准则原文翻译

    C++核心准则CP.8:不要使用volatile关键字实现同步处理​

    (int n = free_slots--) return &pool[n]; } Here we have a problem: This is perfectly good code in a single-threaded

    44620发布于 2020-07-03
  • 来自专栏福大大架构师每日一题

    c#中用System.Diagnostics.Process.Start(Path.GetFullPath(“vlc.exe.lnk“), url);用vlc的

    因为 Shell32 命名空间对应的 COM 组件在内部使用了单线程模型(Single-Threaded Apartment, STA),必须在 UI 线程中执行,否则会抛出异常。

    86800编辑于 2023-05-24
  • 来自专栏小工匠聊架构

    Java-多线程框架Executor

    * * @return the newly created single-threaded Executor */ public static ExecutorService threadFactory the factory to use when creating new * threads * * @return the newly created single-threaded ---- newSingleThreadScheduledExecutor /** * Creates a single-threaded executor that can schedule DelegatedScheduledExecutorService (new ScheduledThreadPoolExecutor(1)); } /** * Creates a single-threaded

    62930发布于 2021-08-17
  • 来自专栏全栈程序员必看

    js有哪些异步操作_js单线程怎么实现异步

    JavaScript引擎是基于单线程 (Single-threaded) 事件循环的概念构建的,同一时刻只允许一个代码块在执行,所以需要跟踪即将运行的代码,那些代码被放在一个任务队列 (job queue

    3.9K20编辑于 2022-08-04
  • 来自专栏闻道于事

    Executors源码之线程池

    * * @return the newly created single-threaded Executor */ public static ExecutorService threadFactory the factory to use when creating new * threads * * @return the newly created single-threaded

    62230发布于 2021-06-29
  • 来自专栏代码编写世界

    CMake构建学习笔记26-OpenBLAS库的构建

    management provided by OpenMP is not sufficient to prevent race conditions when OpenBLAS was built single-threaded

    22110编辑于 2025-11-21
  • 来自专栏AlgorithmDog的专栏

    Akka 使用系列之四: Future

    Since our usage of Akka is limited (mainly for RPC and single-threaded event loop), we can replace it

    1.2K60发布于 2017-12-29
  • 来自专栏python3

    python——twisted

    Two other common programming paradigms are (single-threaded) synchronous and multi-threaded programming Let's compare and contrast single-threaded, multi-threaded, and event-driven programming models with Figure 21.1: Threading models In the single-threaded synchronous version of the program, tasks are performed which describes demultiplexing and dispatching events from multiple sources to their handlers in a single-threaded

    87320发布于 2020-01-09
  • 来自专栏GEE数据专栏,GEE学习专栏,GEE错误集等专栏

    Google Earth Engine(GEE) ——河流中管理不善的塑料垃圾数据集

    Impact (< 1 t/yr/km2) 5000 = None River Type Dataset Code 0 = No Data/Background Code 1 = Meandering/Single-threaded

    45310编辑于 2024-02-02
  • 来自专栏二进制文集

    Thrift RPC 框架分析

    +-------------------------------------------+ | Server | | (single-threaded

    3.1K21发布于 2018-12-21
  • 来自专栏清晨我上码

    第十二节 netty前传-NIO 实现reactor模式

    Thread.interrupted()) //启动额外线程处理socket客户端连接后的业务处理 new Thread(new Handler(ss.accept())).start(); // or, single-threaded

    53460发布于 2018-12-28
  • 来自专栏python3

    python bottle 简介

    script flup flup Run as FastCGI process gae gae Helper for Google App Engine deployments wsgiref wsgiref Single-threaded

    1.6K20发布于 2020-01-15
  • 来自专栏云计算与大数据

    Design of the Shutdown Hooks API

    This technique really only makes sense, however, in a single-threaded system.

    83220发布于 2019-05-28
领券