migrating processess to avoid the GIL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Patrick Stinson

    migrating processess to avoid the GIL

    I need to migrate calls to CPython to another process in my C++ app to
    get around the GIL. Does anyone know of a good way to do this on
    windows and Mac? All calls and callbacks can be blocking, I just need
    to share some data structures.

    Cheers
  • Aaron \Castironpi\ Brady

    #2
    Re: migrating processess to avoid the GIL

    On Sep 19, 6:40 pm, "Patrick Stinson" <patrickstinson .li...@gmail.co m>
    wrote:
    I need to migrate calls to CPython to another process in my C++ app to
    get around the GIL. Does anyone know of a good way to do this on
    windows and Mac? All calls and callbacks can be blocking, I just need
    to share some data structures.
    >
    Cheers
    You should look into 'mmap' and 'struct'. mmap shares memory between
    processes, and is a random-access read-write file buffer. struct
    packs data from primitive types (integers, floats, & short strings)
    into a buffer.

    If you need advice on structuring your shared file, feel free to write
    back.

    Comment

    Working...