[issue5725] process SysV-Semaphore support

2010-12-29 Thread Jesse Noller
Changes by Jesse Noller : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5725] process SysV-Semaphore support

2009-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: jvdias, have you looked at what the multiprocessing module offers? http://docs.python.org/library/multiprocessing.html#synchronization-primitives -- nosy: +pitrou ___ Python tracker

[issue5725] process SysV-Semaphore support

2009-11-26 Thread Philip Semanchuk
Philip Semanchuk added the comment: I stumbled across this bug report while looking for an mmap-related issue. I thought I'd mention that I have a module for SysV IPC that's about a year old. Obviously it's not in the standard library, but it is pretty well fleshed out. It's in active use and

[issue5725] process SysV-Semaphore support

2009-04-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray-old ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5725] process SysV-Semaphore support

2009-04-13 Thread R David Murray
R David Murray added the comment: On Sat, 11 Apr 2009 at 09:29, jvdias wrote: > jvdias added the comment: > > Thanks for responding ! You are welcome. If you want something to happen, though, you'll have to get support from the community and submit a patch. > Can't Python provide a better pr

[issue5725] process SysV-Semaphore support

2009-04-11 Thread jvdias
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 yes, what I

[issue5725] process SysV-Semaphore support

2009-04-09 Thread R. David Murray
R. David Murray added the comment: In issue5672 Martin said: If somebody would provide a patch that adds prctl to the posix module, that would be fine with me - we have a long tradition of exposing all available system calls if somebody wants them. However, you are talking about a System

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
Changes by jvdias : -- versions: +Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
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 category | The 'perlf

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
Changes by jvdias : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
Changes by jvdias : Removed file: http://bugs.python.org/file13657/psem_example.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
Changes by jvdias : Removed file: http://bugs.python.org/file13655/psempy.c ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
jvdias added the comment: C source code implementing "psem.*" python module functions -- Added file: http://bugs.python.org/file13662/psempy.c ___ Python tracker ___

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
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 optimized

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
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 */ sy

[issue5725] process SysV-Semaphore support

2009-04-09 Thread jvdias
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 in 1+0

[issue5725] process SysV-Semaphore support

2009-04-08 Thread jvdias
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, Oc

[issue5725] process SysV-Semaphore support

2009-04-08 Thread jvdias
Changes by jvdias : Removed file: http://bugs.python.org/file13656/psem_example.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5725] process SysV-Semaphore support

2009-04-08 Thread jvdias
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, psem, psem_example >>> psem_

[issue5725] process SysV-Semaphore support

2009-04-08 Thread jvdias
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 : ' import sys.semget sys.semop sys.semct