跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

统计学 > 计算

arXiv:1811.00450 (stat)
[提交于 2021年2月9日]

标题:R friendly multi-threading in C++

作者:Thomas Nagler
查看论文《R friendly multi-threading in C++》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Calling multi-threaded C++ code from R has its perils. Since the R interpreter is single-threaded, one must not check for user interruptions or print to the R console from multiple threads. One can, however, synchronize with R from the main thread. The R package RcppThread (current version 1.0.0) contains a header only C++ library for thread safe communication with R that exploits this fact. It includes C++ classes for threads, a thread pool, and parallel loops that routinely synchronize with R. This article explains the package's functionality and gives examples of its usage. The synchronization mechanism may also apply to other threading frameworks. Benchmarks suggest that, although synchronization causes overhead, the parallel abstractions of RcppThread are competitive with other popular libraries in typical scenarios encountered in statistical computing.
主题: 计算 (stat.CO)
引用方式: arXiv:1811.00450 [stat.CO]
  (或者 arXiv:1811.00450v1 [stat.CO] 对于此版本)
  https://doi.org/10.48550/arXiv.1811.00450

提交历史

来自:Thomas Nagler
[v1] 2021年2月9日 星期二 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

stat.CO
< 上一篇   |   下一篇 >
最新 | 近期 | 2021-02
切换浏览方式为:
stat

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站