A dictionary that can be shared across processes without being
marshaled?
Is there such a thing already for python?
If not is there one for C maybe?
I was just thinking how useful such a thing could be. It's a great way
to share things between processes. For example I use a cache that
subclasses a dictionary. It would be trivial to modify it to work
across processes by changing the base class and the locking mechanism.
Thanks,
-Sandra 3 1961
"Sandra-24" <sa***********@yahoo.comwrites:
A dictionary that can be shared across processes without being
marshaled?
Is there such a thing already for python?
Check this out: http://poshmodule.sourceforge.net/
--
HTH,
Rob
On 18 Sep 2006 12:44:32 -0700, Sandra-24 <sa***********@yahoo.comwrote:
A dictionary that can be shared across processes without being
marshaled?
Is there such a thing already for python?
If not is there one for C maybe?
I was just thinking how useful such a thing could be. It's a great way
to share things between processes. For example I use a cache that
subclasses a dictionary. It would be trivial to modify it to work
across processes by changing the base class and the locking mechanism.
Thanks,
-Sandra
Maybe what you want is something like memcache
( http://cheeseshop.python.org/pypi/memcached), which offers a basic
in-memory, key-value share that processes (even on different boxes)
can connect to. Of course, as with any kind of concurrent work, its
going to be far easier to have some restrictions, which memcache has.
For example, full python objects being shared isn't a great idea, or
even possible in many situations. The closest you could get with
something like memcache is to wrap it up in a dictionary-like object
and have it pickle things coming in and out, but that won't work for
everying and has security concerns.
I looked at posh, and read the report on it, it's very interesting, but
it will not work for me. Posh requires that it forks the processes, but
in mod_python the processes were forked by apache and use different
interpreters.
Calvin Spealman wrote:
Maybe what you want is something like memcache
(http://cheeseshop.python.org/pypi/memcached), which offers a basic
in-memory, key-value share that processes (even on different boxes)
can connect to. Of course, as with any kind of concurrent work, its
going to be far easier to have some restrictions, which memcache has.
For example, full python objects being shared isn't a great idea, or
even possible in many situations. The closest you could get with
something like memcache is to wrap it up in a dictionary-like object
and have it pickle things coming in and out, but that won't work for
everying and has security concerns.
Memcached looks like it will do the job. Thanks!
-Sandra This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Web Science |
last post by:
Site and Features: http://www.eigensearch.com
Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
|
by: * ProteanThread * |
last post by:
but depends upon the clique:
...
|
by: rollasoc |
last post by:
Hi,
Doing a bit of system testing on a Windows 98 laptop. (.Net 1.1 app).
Did a bit of testing. Loaded a previously saved file. A gray box
appeared with the text and buttons all white...
|
by: Web Science |
last post by:
Site and Features: http://www.eigensearch.com
Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
|
by: Jeff Rodriguez |
last post by:
Here's what I want do:
Have a main daemon which starts up several threads in a Boss-Queue structure.
From those threads, I want them all to sit and watch a queue. Once an entry
goes into the...
|
by: Web Science |
last post by:
Site and Features: http://www.eigensearch.com
Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
|
by: Rob Woodworth |
last post by:
Hi,
I'm having serious problems getting my report to work. I need to
generate a timesheet report which will contain info for one employee between
certain dates (one week's worth of dates). I...
|
by: Simon |
last post by:
Hi All,
An experiment i'm doing requires requires a synchronous cross-domain
request, without using a proxy. I wondered if anyone had any ideas to
help me achieve this.
Below is what I have...
|
by: Bart Van der Donck |
last post by:
Hello,
I'm presenting my new library 'AJAX Cross Domain' - a javascript
extension that allows to perform cross-domain AJAX requests.
http://www.ajax-cross-domain.com/
Any comments or...
|
by: ampo |
last post by:
Hello.
Can anyone help with cross-domain problem?
I have HTML page from server1 that send xmlHTTPRequest to server2.
How can I do it?
Thanks.
|
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...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
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...
|
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...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
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
|
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...
| |