jvdias added the comment:
Thanks for responding !
I also think that the the Solaris Python should provide support for prctl .
Well, actually in modern Solaris what can be achieved with "prctl"
can be achieved my mmap()-ping and manipulating the procfs(4) mounted under
/proc -
but y
Changes by jvdias :
--
versions: +Python 3.0, Python 3.1
___
Python tracker
<http://bugs.python.org/issue5725>
___
___
Python-bugs-list mailing list
Unsubscribe:
jvdias added the comment:
Contrast what I had to do to perform a process semaphore operation
in Python with how one would do it in PERL :
-- Perl 5.10.0 documentation --
Show toolbar
Home > Language reference > Functions > semop
semop
Perl functions A-Z | Perl functions by categ
Changes by jvdias :
--
components: +Interpreter Core
___
Python tracker
<http://bugs.python.org/issue5725>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by jvdias :
Removed file: http://bugs.python.org/file13657/psem_example.py
___
Python tracker
<http://bugs.python.org/issue5725>
___
___
Python-bugs-list mailin
Changes by jvdias :
Removed file: http://bugs.python.org/file13655/psempy.c
___
Python tracker
<http://bugs.python.org/issue5725>
___
___
Python-bugs-list mailin
jvdias added the comment:
C source code implementing "psem.*" python module functions
--
Added file: http://bugs.python.org/file13662/psempy.c
___
Python tracker
<http://bugs.python.
jvdias added the comment:
PS: Timings for x86{-32,-64} or ia{32,64} architectures are likely
to show a significantly smaller speedup because they truly are
MIMD CISC pipeline machines ( the multiple-core feature and
IA64 "instruction triplet groups" mean they are more
jvdias added the comment:
I suggest a new sys SysV-semaphore API :
sys.semget( sem_key, sem_nsems, sem_flags)
sys.SEM_KEY_ANY = 0
sys.SEM_UNDO= 0x1000 /*chain of atomic kernel UNDO operations*/
sys.SEM_GETPID = 11 /* get sempid */
sys.SEM_GETVAL = 12 /* get semval
jvdias added the comment:
$ time /usr/bin/python2.6 ./psem_example.py 2>&1 | tee log
Do you really want to run test using 16 1MB log files ? Y/Ny
generating files 0..15
generating file 0
generating file 1
generating file 2
generating file 3
generating file 4
generating file 5
1+0 records
jvdias added the comment:
Example Python use of psem.so Parallel ForEach : Log Compressor
Usage:
$ gcc -o psem.so -fPIC -shared psempy.c -I/usr/include/python2.6
-L/usr/lib/python2.6 -lpython2.6
$ dd if=/dev/urandom bs=100 count=1 of=app1_20090407.01.log
$ python
Python 2.6 (r26:66714
Changes by jvdias :
Removed file: http://bugs.python.org/file13656/psem_example.py
___
Python tracker
<http://bugs.python.org/issue5725>
___
___
Python-bugs-list mailin
jvdias added the comment:
To Build:
$ gcc -fPIC -shared -o psempy.c psempy.so -I/usr/include/python2.6
-L/usr/lib/python2.6 -lpython2.6 && mv psempy.so psem.so
$ dd if=/dev/urandom of=app1_20090407.01.log bs=100 count=1
$ python
>>> import sys, os, re, datetime, p
New submission from jvdias :
Please could we have an API in the Python Core for PROCESS
as opposed to THREAD Semaphores , to enable facilities such
as I have done in the attached example "psempy.so" compiled
"C" python module.
ie. I'd like to be able to :
14 matches
Mail list logo