Re: pragma importing sem_init gives me a segmentation fault



Stephen Leake wrote:

It might be better to redesign the program to use Ada protected types
rather than OS semaphores.

If the semaphore is in shared memory (and it is, see original question), then I'd expect that some other programs make use of it. There is no provision that all such programs are written in Ada.

And how do you make a protected object that is shared between processes, btw?

--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
.



Relevant Pages

  • High tcpAttemptFails and dropped packets help plz!!
    ... Process Resource Limit Tunables ... IPC Semaphores ... IPC Shared Memory ... min shared memory segment size ...
    (comp.unix.solaris)
  • Re: process safe communication
    ... SunOs 5.7 - POSIX semaphores and shared memory supported, ... >> queue no longer empty) and Mutexes. ...
    (comp.unix.programmer)
  • Re: Multi-Threading problem
    ... Patricia Shanahan wrote: ... memory with synchronization [ ... build conventional structures such as message passing and semaphores. ... working with shared memory directly, but it's a difficult habit to change. ...
    (comp.lang.java.programmer)
  • Re: Standard IPC for Python?
    ... I was looking for semaphores and shared memory, but it is not in the standard lib. ... The only reason to use shm over the sysv_ipc module is that shm supports versions of Python < 2.5. ...
    (comp.lang.python)
  • SUMMARY: Mismatch in semaphore values in /etc/system and sysdef -i
    ... 50 message queue identifiers ... IPC Semaphores ... IPC Shared Memory ...
    (SunManagers)