473,379 Members | 1,255 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,379 software developers and data experts.

Re: Sharing common memory space (In form of List) across the pythonprocesses.



Piyush Chechani wrote:
>
Hi,

I am working on a module where I need to share contents of a big List
across the processes. I am using socket programming concept for this.

My current processing for this is as follows: -
1. There is a server program S which loads the list in the
memory, and listens on a particular port,
2. All the other programs which want to access that list sends a
request on that server port,
3. Server sends the id of the memory loaded list element to the
requesting process.
Here I am getting a problem in the reverse function of id(), as my
client should get the list object using its id but I don't know the
python function for doing this.
There intentionally is no such function. If by 'process', I believe you
should just send the object, which actually just sends an internal
reference to the object. If you mean OS process, look into interprocess
communication. 3.0 has a new multiprocessing module that might help.
Or have your server perform manipulations on the object.

Aug 1 '08 #1
0 951

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

Similar topics

2
by: Dhanvi | last post by:
Hi, I have another question for the group. I would like to know if there is a quick way by which I could store a Queue in a flat memory space without the use of iterators ? Thanks -Dhanvi
2
by: Rashad Rivera | last post by:
Hi gang, I have somewhat of a complicated question. I will try my best to explain. I have .NET assemblies that run in IIS's memory space. But I want to be able to interface with those...
1
by: Dave Booker | last post by:
I am using VS2003. How can I compile a (32-bit) C# project so that the program can use more than 2GB of memory space? I came across a /3G compile option searching on this subject, that is...
7
by: Yi | last post by:
Two questions about the following code sample: --- code begins --- //class IPv4 is defined elsewhere list<IPv4ip_list; for (int i=1; i<=9; i++) { char addr; sprintf(addr, "%d.%d.%d.%d",...
7
by: Virtual_X | last post by:
Hello why when we define a pointer for any type it takes a memory space such as the type it points to and it's just hold an address not data ex: int *x; int y; x=&y;
5
by: vnpatriot7 | last post by:
Hi everybody, I have two questions: 1) About memory space in C++ 2) About global and static variable As what I read somewhere that after compilation process which translate C++ code into...
0
by: D'Arcy J.M. Cain | last post by:
On Tue, 26 Aug 2008 18:18:53 +0530 Piyush Chechani <piyush.chechani@tcs.comwrote: Perhaps you want to investigate XML-RPC. Check the docs for some example scripts for both client and server. ...
0
by: NagaShravan | last post by:
How can we load the records which is selected in prvious form list view
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.