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

    【Boost】Interprocess - 共享内存、文件映射介绍

    一、用法介绍       通过Interprocess,可以实现在共享内存、文件映射中保存vector、map等STL对象,并且可以使用自定义的类,官方文档介绍的也很详细了,下面是几个精简的示例 示例:基于文件映射的Map使用 #include <boost/interprocess/managed_mapped_file.hpp> #include <boost/interprocess/containers /managed_shared_memory.hpp> #include <boost/interprocess/managed_mapped_file.hpp> #include <boost/interprocess /managed_shared_memory.hpp> #include <boost/interprocess/containers/vector.hpp> #include <boost/interprocess One of the biggest issues with interprocess communication mechanisms is the lifetime of the interprocess

    5.8K10发布于 2018-08-03
  • 来自专栏C++开发学习交流

    【C++】开源:Boost进程间通信库InterProcess配置使用

    Boost.InterProcess介绍 项目Github地址:https://github.com/boostorg/interprocess 官网:https://www.boost.org/doc /libs/1_83_0/doc/html/interprocess.html Boost.InterProcess是Boost库中的一个模块,提供了用于在C++中进行进程间通信和共享内存操作的功能。 Boost.InterProcess提供了以下主要功能: 1.共享内存段(Shared Memory Segments):Boost.Interprocess允许创建具有命名或匿名标识符的共享内存段。 4.共享内存分配器(Shared Memory Allocators):Boost.Interprocess提供了共享内存分配器,可以在共享内存中动态分配和释放内存。 使用说明 共享内存读写示例 #include <boost/interprocess/shared_memory_object.hpp> #include <boost/interprocess/mapped_region.hpp

    1.9K10编辑于 2024-07-24
  • 来自专栏一个会写诗的程序员的博客

    详解操作系统之进程间通信 IPC (InterProcess Communication)

    任何一个进程的全局变量在另一个进程中都看不到,所以进程之间要交换数据必须通过内核,在内核中开辟一块缓冲区,进程1把数据从用户空间拷到内核缓冲区,进程2再从内核缓冲区把数据读走,内核提供的这种机制称为进程间通信(IPC,InterProcess

    10K31编辑于 2021-12-16
  • 来自专栏DevOps

    C++ 进程间通信 详解1

    #include <boost/interprocess #include <boost/interprocess #include <boost/interprocess #include <boost/interprocess /sync/interprocess_semaphore.hpp>

    69210编辑于 2024-03-29
  • 来自专栏CPP开发前沿

    如何正确使用C++快速写入大文件

    这里主要使用了BOOST库中的Boost.Interprocess和MemoryMappedFiles库来实现内存映射文件的操作。 #include <iostream> #include <boost/interprocess/file_mapping.hpp> #include <boost/interprocess/mapped_region.hpp ::file_mapping::remove(fileName.c_str()); // 删除已存在的文件 // 创建新文件 boost::interprocess::file_mapping file(fileName.c_str(), boost::interprocess::read_write); boost::interprocess::mapped_region region (file, boost::interprocess::read_write, 0, fileSize); // 在内存中操作文件内容 char* addr = static_cast

    3.8K20编辑于 2023-11-07
  • 来自专栏向治洪

    跨应用发送和接受广播

    receiver的android:process属性即可 发送广播的应用中: Java代码   Intent intent = new Intent("info.zhegui.receiver.interprocess process=":remote" >           <intent-filter>               <action android:name="info.zhegui.receiver.<em>interprocess</em>

    2K90发布于 2018-01-30
  • 来自专栏转载gongluck的CSDN博客

    第1章 简介

    IPC是进程间通信(interprocess communication)的简称。 每当在一个Unix函数中发生错误时,全局变量errno将被设置成一个指示错误类型的正数,函数本身则通常返回-1。

    63860发布于 2018-03-08
  • 来自专栏GPUS开发者

    DAY13:CUDA C Runtime之统一虚拟地址空间及进程间通信

    Interprocess Communication【进程间通信】 Any device memory pointer or event handle created by a host thread pointer using cudaIpcGetMemHandle(), pass it to another process using standard IPC mechanisms (e.g., interprocess Interprocess Communication 可以将一个context(或者你理解成的使用了CUDA的进程)内分配的显存,共享给另外一个context(或者你理解成另外一个进程)用。

    3K41发布于 2018-06-22
  • 来自专栏全栈程序员必看

    Boost.Lockfree官方文档翻译

    allocator Definesthe allocator. boost.lockfree supportsstateful allocator and is compatible with Boost.Interprocess boost.lockfree支持具状态分配器,并且与Boost.Interprocess的分配器兼容。 Interprocess Support 进程间支持 The boost.lockfree datastructures have basic support for Boost.Interprocess blocking emulation of lock-free atomics, which in thecurrent implementation is not guaranteed to be interprocess-safe . boost.lockfree数据结构具有对Boost.Interprocess的基本支持。

    71030编辑于 2022-09-09
  • 来自专栏康怀帅的专栏

    Docker 相关概念总览

    The ipc namespace: Managing access to IPC resources (IPC: InterProcess Communication).

    1.2K80发布于 2018-02-28
  • 来自专栏友弟技术工作室

    docker拾遗-之再入坑

    PID (Process ID) 进程隔离 NET (Network) 管理网络接口 IPC (InterProcess Communication) 管理跨进程通信的访问 MNT (Mount) 管理挂载点

    61760发布于 2018-06-14
  • 来自专栏刘晓杰

    UNPv2第一章:简介

    1 概述 IPC是进程间通信(interprocess communication)的简称。传统上该术语描述的是运行在某个操作系统上的不同进程间的消息传递的不同方式。

    49230发布于 2019-02-21
  • 来自专栏石瞳禅的互联网实验室

    看图理解进程间通信IPC

    什么是进程间通讯 进程间通信(inter-process communication或interprocess communication,简写IPC)是指两个或两个以上进程(或线程)之间进行数据或信号交互的技术方案

    2.9K20发布于 2018-09-18
  • 来自专栏修也的进阶日记

    【Linux】进程间通信

    进程间通信 顾名思义,进程通信( InterProcess Communication,IPC)就是指进程之间的信息交换。

    72310编辑于 2024-11-17
  • 来自专栏全栈程序员必看

    MSDN 6.0 之 Platform SDK 内容导航

    Characters Input Method Editor National Language Support Unicode and Character Sets Locale Identifiers Interprocess Communication Interprocess Communication Atoms Clipboard Dynamic Data Exchange Dynamic Data Exchange

    79030编辑于 2022-09-06
  • 来自专栏Vamei实验室

    Linux进程间通信

    我们在Linux信号基础中已经说明,信号可以看作一种粗糙的进程间通信(IPC, interprocess communication)的方式,用以向进程封闭的内存空间传递信息。 传统IPC (interprocess communication)。我们主要是指消息队列(message queue),信号量(semaphore),共享内存(shared memory)。

    4.6K101发布于 2018-01-18
  • 来自专栏巴山学长

    NelSon:一款新的适配matlab编程语法的编程工具

    Subroutine Library in Systems and Control Theory, QML engine, COM interface, Message Passing Interface, Interprocess

    66920编辑于 2022-06-23
  • 来自专栏时悦的学习笔记

    [Oracle集群软件全解析] 集群系统进程和服务总览

    该服务运行在集群中的每个节点上 Grid Plug and Play (GPNPD): 该服务提供对Grid Plug and Play profile的访问,确保所有节点用用最近的profile Grid Interprocess

    74220发布于 2020-08-19
  • 来自专栏猿计划

    进程间的通信

    信号 7、共享内存通信 8、套接字通信 (4)无名管道和有名管道的联系和区别 1、联系 2、区别 (5)各个通信方式的讲解 1、进程间通信 (1)概述 先看一段来自百度百科的解释: 进程间通信(IPC,Interprocess

    97331发布于 2020-10-26
  • 来自专栏python前行者

    [1151]python连接 redis cluster集群

    │ │ redis-relay │ 0.0.1 │ Jul 25, 2018 │ redis relay for interprocess

    1.2K20编辑于 2022-07-17
领券