473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Sep 19 '08 #1
1 904
On Sep 19, 6:40*pm, "Patrick Stinson" <patrickstinson.li...@gmail.com>
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.
Sep 20 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: lcifers | last post by:
First off, sorry if my cross posting offends anyone. I'm posting this in Access and SQL Server groups - not sure which one is appropriate. I have a relatively simple ASP.NET/VB.NET application...
4
by: Juan | last post by:
I'm migrating a VB.Net app to c# and found the following: Private m_State(,) As Integer If anyone knows what is the analogous in c#... is it an array? Thanks, Juan.
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
8
by: silangdon | last post by:
Hi, I've just got round to trying VB in .Net 2003 (since MS pulled the rug from under VB6) and... it wont let me edit and continue??? In fact it wont even let me edit whilst debugging ...
4
by: Kaloyan Iliev Iliev | last post by:
Dear friends, I have the following problem. libvar=# select version(); version ---------------------------------------------------------------- PostgreSQL 7.2.3 on i386-pc-bsdi4.0.1,...
1
by: Kondapanaidu | last post by:
Hi, What are the availabale applications run in a windows task manager(not for process because it shown defaultly so many processess i dont need those process). Need Information what are the...
64
by: John | last post by:
Hello there, Im cursing my place of employment...and its taken me a month to realise it... The scenario: Ive just stepped into a role to migrate an access database to VB.Net. The access...
5
by: =?UTF-8?B?UmFmYcWC?= Zawadzki | last post by:
Hello. As I saw in logging source - there is no lock per file during making emit() (only lock per thread). So, my question is - is it safe to log into one file using many processess uses...
3
by: =?Utf-8?B?Sk9TRS5BLlJPRFJJR1VFWixKUg==?= | last post by:
hello every one,happy new years. my first question is,should i worry about 69 or 70 processess running,can i delete,or stopp them from running,is it safe,please reply
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.